From 48d51b66fac883fc8648fb6b9df487382b8addc2 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 4 Mar 2007 20:03:06 +0000 Subject: code improvements by making type casts explicit, flagging ignored return values, renames and flagging of parameters and some miscelanious improvements (thanks to gcc warnings, splint, rats and flawfinder) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@265 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/group.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nss/group.c') diff --git a/nss/group.c b/nss/group.c index 4e51f94..ebf09a9 100644 --- a/nss/group.c +++ b/nss/group.c @@ -50,12 +50,12 @@ static enum nss_status read_gids( FILE *fp,long int *start,long int *size, gid_t **groupsp,long int limit,int *errnop) { - int32_t res=NSLCD_RESULT_SUCCESS; + int32_t res=(int32_t)NSLCD_RESULT_SUCCESS; int32_t tmpint32,tmp2int32,tmp3int32; gid_t gid; int num=0; /* loop over results */ - while (res==NSLCD_RESULT_SUCCESS) + while (res==(int32_t)NSLCD_RESULT_SUCCESS) { /* skip group name */ SKIP_STRING(fp); @@ -77,7 +77,7 @@ static enum nss_status read_gids( READ_TYPE(fp,res,int32_t); } /* return the proper status code */ - return (res==NSLCD_RESULT_NOTFOUND)?NSS_STATUS_SUCCESS:nslcd2nss(res); + return (res==(int32_t)NSLCD_RESULT_NOTFOUND)?NSS_STATUS_SUCCESS:nslcd2nss(res); } #endif /* REENABLE_WHEN_WORKING */ -- cgit v1.2.3