diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-02-17 12:08:25 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-02-17 12:08:25 +0000 |
commit | f7d514fa13424cf4ddb34634e5feffca89be710b (patch) | |
tree | a6f4c09c7c945f749cfea559c198e229c7a9fcd1 | |
parent | 1cc1884587bd156fb210c2a049ae12b763a2a9e1 (diff) |
fix a few bugs found thanks to the new warnings
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@251 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | nslcd-common.h | 2 | ||||
-rw-r--r-- | nslcd/cfg.c | 2 | ||||
-rw-r--r-- | nss/hosts.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/nslcd-common.h b/nslcd-common.h index f5ea14f..5d0f763 100644 --- a/nslcd-common.h +++ b/nslcd-common.h @@ -250,7 +250,7 @@ static void debug_dump(const void *ptr,size_t size) /* allocate room for *char[num] */ \ BUF_ALLOC(fp,arr,char *,tmpint32); \ /* read all the strings */ \ - for (tmp2int32=0;tmp2int32<(num);tmp2int32++) \ + for (tmp2int32=0;tmp2int32<(int32_t)(num);tmp2int32++) \ { \ READ_STRING_BUF(fp,(arr)[tmp2int32]); \ } diff --git a/nslcd/cfg.c b/nslcd/cfg.c index a9ba6a1..5b7847b 100644 --- a/nslcd/cfg.c +++ b/nslcd/cfg.c @@ -360,7 +360,7 @@ static enum nss_status do_parse_list(char *values,char ***valptr, #ifdef HAVE_STRTOK_R char *tok_r; #endif /* HAVE_STRTOK_R */ - int valcount; + size_t valcount; int buflen = *pbuflen; char *buffer = *pbuffer; diff --git a/nss/hosts.c b/nss/hosts.c index cd13c62..2720b54 100644 --- a/nss/hosts.c +++ b/nss/hosts.c @@ -153,7 +153,7 @@ static enum nss_status read_hostent_nextonempty( do { /* read a host entry */ - retv=read_hostent(fp,AF_INET,result,buffer,buflen,errnop,h_errnop); + retv=read_hostent(fp,af,result,buffer,buflen,errnop,h_errnop); /* check result */ if (retv!=NSS_STATUS_SUCCESS) return retv; |