Fix a few cases of set but unused variables.
Change-Id: I0a3e0906dbc708e2449121f3de1726d7055efc27
Reviewed-on: http://gerrit.openafs.org/5173
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
/* satisfy kdm 2.x
*/
int use_klog = 0;
- int set_expires = 0; /* This option is only used in pam_set_cred() */
int got_authtok = 0; /* got PAM_AUTHTOK upon entry */
PAM_CONST char *user = NULL, *password = NULL;
afs_int32 password_expires = -1;
else
pam_afs_syslog(LOG_ERR, PAMAFS_CONFLICTOPT, "use_klog");
} else if (strcasecmp(argv[i], "setenv_password_expires") == 0) {
- set_expires = 1;
+ ;
} else {
pam_afs_syslog(LOG_ERR, PAMAFS_UNKNOWNOPT, argv[i]);
}
int use_first_pass = 0;
int try_first_pass = 0;
int ignore_root = 0;
- int got_authtok = 0; /* got PAM_AUTHTOK upon entry */
char *torch_password = NULL;
int i;
char my_password_buf[256];
} else {
if (logmask && LOG_MASK(LOG_DEBUG))
pam_afs_syslog(LOG_DEBUG, PAMAFS_GOTPASS, user);
- got_authtok = 1;
}
if (!(use_first_pass || try_first_pass)) {
password = NULL;
{
int i;
int logmask = LOG_UPTO(LOG_INFO);
- int origmask;
int remain = 0;
int remainlifetime = REMAINLIFETIME;
int no_unlog = 0;
openlog(pam_afs_ident, LOG_CONS | LOG_PID, LOG_AUTH);
- origmask = setlogmask(logmask);
+ setlogmask(logmask);
/*
* Parse the user options. Log an error for any unknown options.
int nowarn = 0;
int use_first_pass = 1; /* use the password passed in by auth */
int try_first_pass = 0;
- int got_authtok = 0;
int ignore_uid = 0;
- int no_unlog = 0;
uid_t ignore_uid_id = 0;
int refresh_token = 0;
int set_expires = 0; /* the default is to not to set the env variable */
pam_afs_syslog(LOG_INFO, PAMAFS_OTHERCELL, cell_ptr);
}
} else if (strcasecmp(argv[i], "no_unlog") == 0) {
- no_unlog = 1;
+ ;
} else if (strcasecmp(argv[i], "refresh_token") == 0) {
refresh_token = 1;
} else if (strcasecmp(argv[i], "set_token") == 0) {
pam_afs_syslog(LOG_DEBUG, PAMAFS_NOFIRSTPASS, user);
} else if (password[0] == '\0') {
/* Actually we *did* get one but it was empty. */
- got_authtok = 1;
/* So don't use it. */
password = NULL;
if (use_first_pass) {
} else {
if (logmask && LOG_MASK(LOG_DEBUG))
pam_afs_syslog(LOG_DEBUG, PAMAFS_GOTPASS, user);
- got_authtok = 1;
}
if (!(use_first_pass || try_first_pass)) {
password = NULL;