diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-01-17 23:16:09 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-01-17 23:16:09 +0100 |
commit | 9a2c3e7624985e6110634e07d6b216e96b209adb (patch) | |
tree | 3b0edaa59e8b5fbf5eca0912262451f1669fa375 /nss/netgroup.c | |
parent | 3ac313144f880db85fdbb6a271451f2f693aab44 (diff) |
ensure that all NSS functions can be generated by the marcos in common.h and spell out the read_..() function for every type
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@227 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/netgroup.c')
-rw-r--r-- | nss/netgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nss/netgroup.c b/nss/netgroup.c index 58807d8..4781e7f 100644 --- a/nss/netgroup.c +++ b/nss/netgroup.c @@ -44,6 +44,7 @@ else \ return NSS_STATUS_RETURN; +/* function for reading a single result entry */ static enum nss_status read_netgrent( FILE *fp,struct __netgrent *result, char *buffer,size_t buflen,int *errnop) @@ -58,7 +59,6 @@ static enum nss_status read_netgrent( /* the response is a reference to another netgroup */ result->type=group_val; READ_STRING_BUF(fp,result->val.group); - } else if (type==NETGROUP_TYPE_TRIPLE) { @@ -123,7 +123,7 @@ enum nss_status _nss_ldap_setnetgrent(const char *group,struct __netgrent *resul enum nss_status _nss_ldap_getnetgrent_r(struct __netgrent *result,char *buffer,size_t buflen,int *errnop) { - NSS_GETENT(netgrentfp,read_netgrent); + NSS_GETENT(netgrentfp,read_netgrent(netgrentfp,result,buffer,buflen,errnop)); } enum nss_status _nss_ldap_endnetgrent(struct __netgrent *result) |