diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-03-04 21:03:06 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-03-04 21:03:06 +0100 |
commit | 48d51b66fac883fc8648fb6b9df487382b8addc2 (patch) | |
tree | e85684c4247e33f12417a95989210df016a35109 /nslcd/util.h | |
parent | 03fdef7f5c7667fd92232f6d055f98833bcfef19 (diff) |
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
Diffstat (limited to 'nslcd/util.h')
-rw-r--r-- | nslcd/util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nslcd/util.h b/nslcd/util.h index 18cf06a..f329daf 100644 --- a/nslcd/util.h +++ b/nslcd/util.h @@ -32,7 +32,7 @@ */ enum nss_status _nss_ldap_getrdnvalue(LDAPMessage *entry, const char *rdntype, - char **rval, char **buf, size_t * len); + char **rval, char **buffer, size_t * buflen); int _nss_ldap_write_rndvalue(FILE *fp,LDAPMessage *entry,const char *rdntype); @@ -40,13 +40,13 @@ int _nss_ldap_write_rndvalue(FILE *fp,LDAPMessage *entry,const char *rdntype); * map a distinguished name to a login name, or group entry */ enum nss_status _nss_ldap_dn2uid (const char *dn, - char **uid, char **buf, size_t * len, + char **uid, char **buffer, size_t * buflen, int *pIsNestedGroup, LDAPMessage ** pRes); /* * Escape '*' in a string for use as a filter */ -int _nss_ldap_escape_string(const char *str,char *buf,size_t buflen); +int _nss_ldap_escape_string(const char *src,char *buffer,size_t buflen); #endif /* _LDAP_NSS_LDAP_UTIL_H */ |