diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-11-22 22:33:23 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-11-22 22:33:23 +0000 |
commit | bc94d26115d38781ccc182867acb2328ae93b7d5 (patch) | |
tree | af8811bcff03d92678f9fb9b7ca62846b9ee000b | |
parent | 38c636c0492eeaed7bfddbcd3467581b651c259a (diff) |
ensure that values are logged as unsigned numbers
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1838 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | nslcd/group.c | 2 | ||||
-rw-r--r-- | nslcd/passwd.c | 2 | ||||
-rw-r--r-- | nslcd/protocol.c | 2 | ||||
-rw-r--r-- | nslcd/rpc.c | 2 | ||||
-rw-r--r-- | nslcd/service.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/nslcd/group.c b/nslcd/group.c index 35847dc..0096c95 100644 --- a/nslcd/group.c +++ b/nslcd/group.c @@ -335,7 +335,7 @@ NSLCD_HANDLE( gid_t gid; char filter[4096]; READ_TYPE(fp,gid,gid_t); - log_setrequest("group=%d",(int)gid);, + log_setrequest("group=%lu",(unsigned long int)gid);, NSLCD_ACTION_GROUP_BYGID, mkfilter_group_bygid(gid,filter,sizeof(filter)), write_group(fp,entry,NULL,&gid,1,session) diff --git a/nslcd/passwd.c b/nslcd/passwd.c index 4c5ef88..31485d6 100644 --- a/nslcd/passwd.c +++ b/nslcd/passwd.c @@ -615,7 +615,7 @@ NSLCD_HANDLE_UID( uid_t uid; char filter[4096]; READ_TYPE(fp,uid,uid_t); - log_setrequest("passwd=%d",(int)uid); + log_setrequest("passwd=%lu",(unsigned long int)uid); if (uid<nslcd_cfg->ldc_nss_min_uid) { /* return an empty result */ diff --git a/nslcd/protocol.c b/nslcd/protocol.c index 6936822..88813ad 100644 --- a/nslcd/protocol.c +++ b/nslcd/protocol.c @@ -185,7 +185,7 @@ NSLCD_HANDLE( int protocol; char filter[4096]; READ_INT32(fp,protocol); - log_setrequest("protocol=%d",protocol);, + log_setrequest("protocol=%lu",(unsigned long int)protocol);, NSLCD_ACTION_PROTOCOL_BYNUMBER, mkfilter_protocol_bynumber(protocol,filter,sizeof(filter)), write_protocol(fp,entry,NULL) diff --git a/nslcd/rpc.c b/nslcd/rpc.c index 6b40c99..8bb98be 100644 --- a/nslcd/rpc.c +++ b/nslcd/rpc.c @@ -185,7 +185,7 @@ NSLCD_HANDLE( int number; char filter[4096]; READ_INT32(fp,number); - log_setrequest("rpc=%d",number);, + log_setrequest("rpc=%lu",(unsigned long int)number);, NSLCD_ACTION_RPC_BYNUMBER, mkfilter_rpc_bynumber(number,filter,sizeof(filter)), write_rpc(fp,entry,NULL) diff --git a/nslcd/service.c b/nslcd/service.c index 330bfb1..05203b0 100644 --- a/nslcd/service.c +++ b/nslcd/service.c @@ -231,7 +231,7 @@ NSLCD_HANDLE( char filter[4096]; READ_INT32(fp,number); READ_STRING(fp,protocol); - log_setrequest("service=%d/%s",number,protocol);, + log_setrequest("service=%lu/%s",(unsigned long int)number,protocol);, NSLCD_ACTION_SERVICE_BYNUMBER, mkfilter_service_bynumber(number,protocol,filter,sizeof(filter)), write_service(fp,entry,NULL,protocol) |