From 9a2c3e7624985e6110634e07d6b216e96b209adb Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Wed, 17 Jan 2007 22:16:09 +0000 Subject: 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 --- nss/common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nss/common.h') 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 */ \ -- cgit v1.2.3