summaryrefslogtreecommitdiffstats
path: root/lib/libpam
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-04-08 11:07:51 +0000
committerru <ru@FreeBSD.org>2002-04-08 11:07:51 +0000
commit54bcb55671b2ff5cc90d440800a63cb3c1e18685 (patch)
tree5842dcbef4b6d5d1252ae852601802c37e2f7ecd /lib/libpam
parent07997437f04ae67df52e5cf27edd45fc45b7b3a7 (diff)
downloadFreeBSD-src-54bcb55671b2ff5cc90d440800a63cb3c1e18685.zip
FreeBSD-src-54bcb55671b2ff5cc90d440800a63cb3c1e18685.tar.gz
Align for const poisoning in -lutil.
Diffstat (limited to 'lib/libpam')
-rw-r--r--lib/libpam/modules/pam_unix/pam_unix.c6
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)
OpenPOWER on IntegriCloud