diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-10-29 20:01:30 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-10-29 23:20:01 +0100 |
commit | f8af48faa18b6d9017ea64f4df2d6ee2b1743df3 (patch) | |
tree | c27c3d3932b850c65854ca4b855fbb68d262207b /nslcd/pam.c | |
parent | 88801f9e5a01e580adae4f386c0c755fb2a17b79 (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 'nslcd/pam.c')
-rw-r--r-- | nslcd/pam.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nslcd/pam.c b/nslcd/pam.c index bdd8729..2593c7c 100644 --- a/nslcd/pam.c +++ b/nslcd/pam.c @@ -546,7 +546,7 @@ int nslcd_pam_authz(TFILE *fp, MYLDAP_SESSION *session) return 0; } -int nslcd_pam_sess_o(TFILE *fp, MYLDAP_SESSION *session) +int nslcd_pam_sess_o(TFILE *fp, MYLDAP_SESSION UNUSED(*session)) { int32_t tmpint32; char username[256], service[64], ruser[256], rhost[HOST_NAME_MAX + 1], tty[64]; @@ -554,7 +554,7 @@ int nslcd_pam_sess_o(TFILE *fp, MYLDAP_SESSION *session) static const char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "01234567890"; - int i; + unsigned int i; /* read request parameters */ READ_STRING(fp, username); READ_STRING(fp, service); @@ -579,7 +579,7 @@ int nslcd_pam_sess_o(TFILE *fp, MYLDAP_SESSION *session) return 0; } -int nslcd_pam_sess_c(TFILE *fp, MYLDAP_SESSION *session) +int nslcd_pam_sess_c(TFILE *fp, MYLDAP_SESSION UNUSED(*session)) { int32_t tmpint32; char username[256], service[64], ruser[256], rhost[HOST_NAME_MAX + 1], tty[64]; |