diff options
author | Alessandro Bono <alessandro.bono369@gmail.com> | 2022-08-29 17:47:29 +0200 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2022-10-27 13:58:36 +0000 |
commit | 8d9cc81cfe1ec97104ccb3600609243d5da23745 (patch) | |
tree | c9a9c4267c8f7819a67439184e35a7b7f52113fb /pam_gdm | |
parent | 17a43debdf840b8f2c81aa0885b725ad2da7ffb6 (diff) | |
download | gdm-8d9cc81cfe1ec97104ccb3600609243d5da23745.tar.gz |
pam_gdm: Avoid incompatible pointer type warning
Function keyctl_read_alloc expects `void **` but we pass `char **`.
Diffstat (limited to 'pam_gdm')
-rw-r--r-- | pam_gdm/pam_gdm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pam_gdm/pam_gdm.c b/pam_gdm/pam_gdm.c index ef77f161..26eb2a25 100644 --- a/pam_gdm/pam_gdm.c +++ b/pam_gdm/pam_gdm.c @@ -40,7 +40,7 @@ pam_sm_authenticate (pam_handle_t *pamh, #ifdef HAVE_KEYUTILS long r; size_t cached_passwords_length; - char *cached_passwords = NULL; + void *cached_passwords = NULL; char *last_cached_password = NULL; key_serial_t serial; size_t i; @@ -66,7 +66,7 @@ pam_sm_authenticate (pam_handle_t *pamh, */ last_cached_password = cached_passwords; for (i = 0; i < cached_passwords_length; i++) { - last_cached_password = cached_passwords + i; + last_cached_password = ((char *) cached_passwords) + i; i += strlen (last_cached_password); } |