summaryrefslogtreecommitdiff
path: root/pam/pam.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-10-29 20:01:30 +0100
committerArthur de Jong <arthur@arthurdejong.org>2013-10-29 23:20:01 +0100
commitf8af48faa18b6d9017ea64f4df2d6ee2b1743df3 (patch)
treec27c3d3932b850c65854ca4b855fbb68d262207b /pam/pam.c
parent88801f9e5a01e580adae4f386c0c755fb2a17b79 (diff)
Fix a number of compiler warnings
This includes a number of small fixes for issues that were formerly masked by the incorrect AC_LANG_PROGRAM check.
Diffstat (limited to 'pam/pam.c')
-rw-r--r--pam/pam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pam/pam.c b/pam/pam.c
index 2b67c73..36caf11 100644
--- a/pam/pam.c
+++ b/pam/pam.c
@@ -270,8 +270,8 @@ static int nslcd2pam_rc(pam_handle_t *pamh, int rc)
}
/* check whether the specified user is handled by nslcd */
-static int nslcd_request_exists(pam_handle_t *pamh, struct pld_ctx *ctx,
- struct pld_cfg *cfg, const char *username)
+static int nslcd_request_exists(pam_handle_t *pamh, struct pld_cfg *cfg,
+ const char *username)
{
PAM_REQUEST(
NSLCD_ACTION_PASSWD_BYNAME,
@@ -675,7 +675,7 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags,
return remap_pam_rc(PAM_PERM_DENIED, &cfg);
}
/* see if we are dealing with an LDAP user first */
- rc = nslcd_request_exists(pamh, ctx, &cfg, username);
+ rc = nslcd_request_exists(pamh, &cfg, username);
if (rc != PAM_SUCCESS)
return remap_pam_rc(rc, &cfg);
/* preliminary check, just see if we can authenticate with the current password */