From 54bcb55671b2ff5cc90d440800a63cb3c1e18685 Mon Sep 17 00:00:00 2001 From: ru Date: Mon, 8 Apr 2002 11:07:51 +0000 Subject: Align for const poisoning in -lutil. --- lib/libpam/modules/pam_unix/pam_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libpam/modules/pam_unix/pam_unix.c') 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) -- cgit v1.1