src/pam/afs_auth.c warning fix

ka_UserAuthenticateGeneral expects an afs_int32 pointer for the
password_expires argument.  A (long *) was used in afs_auth.c,
generating a few warnings.

Change-Id: Iafc92e72022644ff23c642e801d51bd4387afa88
Reviewed-on: http://gerrit.openafs.org/803
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Marc Dionne 2009-11-10 18:16:45 -05:00 committed by Derrick Brashear
parent 954f67c682
commit 2d0824245c

View File

@ -60,7 +60,7 @@ pam_sm_authenticate(pam_handle_t * pamh, int flags, int argc,
int set_expires = 0; /* This option is only used in pam_set_cred() */ int set_expires = 0; /* This option is only used in pam_set_cred() */
int got_authtok = 0; /* got PAM_AUTHTOK upon entry */ int got_authtok = 0; /* got PAM_AUTHTOK upon entry */
char *user = NULL, *password = NULL; char *user = NULL, *password = NULL;
long password_expires = -1; afs_int32 password_expires = -1;
int torch_password = 1; int torch_password = 1;
int i; int i;
struct pam_conv *pam_convp = NULL; struct pam_conv *pam_convp = NULL;