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/common.h | |
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/common.h')
-rw-r--r-- | nss/common.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nss/common.h b/nss/common.h index 5dd229d..5866cd0 100644 --- a/nss/common.h +++ b/nss/common.h @@ -2,7 +2,7 @@ common.h - common functions for NSS lookups Copyright (C) 2006 West Consulting - Copyright (C) 2006 Arthur de Jong + Copyright (C) 2006, 2007 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -120,7 +120,7 @@ FILE *nslcd_client_open(void); name for reading a single result entry. The function is assumed to have result, buffer, buflen and errnop parameters that define the result structure, the user buffer with length and the - errno to return. This macro should be called with some of + errno to return. This macro should be called through some of the customized ones below. */ #define NSS_BYGEN(action,param,readfn) \ FILE *fp; \ @@ -135,7 +135,7 @@ FILE *nslcd_client_open(void); READ_RESPONSEHEADER(fp,action); \ /* read response */ \ READ_RESPONSE_CODE(fp); \ - retv=readfn(fp,result,buffer,buflen,errnop); \ + retv=readfn; \ /* close socket and we're done */ \ if (retv==NSS_STATUS_SUCCESS) \ fclose(fp); \ @@ -188,7 +188,7 @@ FILE *nslcd_client_open(void); } \ /* read a response */ \ READ_RESPONSE_CODE(fp); \ - retv=readfn(fp,result,buffer,buflen,errnop); \ + retv=readfn; \ /* check read result */ \ if (retv!=NSS_STATUS_SUCCESS) \ fp=NULL; /* file should be closed by now */ \ |