diff options
author | ru <ru@FreeBSD.org> | 2002-04-08 11:07:51 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-04-08 11:07:51 +0000 |
commit | 54bcb55671b2ff5cc90d440800a63cb3c1e18685 (patch) | |
tree | 5842dcbef4b6d5d1252ae852601802c37e2f7ecd /lib/libpam/modules/pam_unix/pam_unix.c | |
parent | 07997437f04ae67df52e5cf27edd45fc45b7b3a7 (diff) | |
download | FreeBSD-src-54bcb55671b2ff5cc90d440800a63cb3c1e18685.zip FreeBSD-src-54bcb55671b2ff5cc90d440800a63cb3c1e18685.tar.gz |
Align for const poisoning in -lutil.
Diffstat (limited to 'lib/libpam/modules/pam_unix/pam_unix.c')
-rw-r--r-- | lib/libpam/modules/pam_unix/pam_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c index 42317f7..ed74b90 100644 --- a/lib/libpam/modules/pam_unix/pam_unix.c +++ b/lib/libpam/modules/pam_unix/pam_unix.c @@ -121,8 +121,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags __unused, int argc, const char struct options options; struct passwd *pwd; int retval; - const char *pass, *user, *realpw; - char *prompt; + const char *pass, *user, *realpw, *prompt; pam_std_option(&options, other_options, argc, argv); @@ -477,7 +476,8 @@ local_passwd(const char *user, const char *pass) login_cap_t * lc; struct passwd *pwd; int pfd, tfd; - char *crypt_type, salt[SALTSIZE + 1]; + const char *crypt_type; + char salt[SALTSIZE + 1]; pwd = getpwnam(user); if (pwd == NULL) |