From 51f3f0903b3f32231f7e8780a5d7c4f9ae1f9203 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 8 Jun 2007 22:57:27 +0000 Subject: implement our own stdio-like library that handles IO with a simple configurable timeout mechanism with buffering git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@272 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/passwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nss/passwd.c') diff --git a/nss/passwd.c b/nss/passwd.c index 06b4b49..9bc236e 100644 --- a/nss/passwd.c +++ b/nss/passwd.c @@ -31,7 +31,7 @@ #include "compat/attrs.h" static enum nss_status read_passwd( - FILE *fp,struct passwd *result, + TFILE *fp,struct passwd *result, char *buffer,size_t buflen,int *errnop) { int32_t tmpint32; @@ -61,7 +61,7 @@ enum nss_status _nss_ldap_getpwuid_r(uid_t uid,struct passwd *result,char *buffe } /* thread-local file pointer to an ongoing request */ -static __thread FILE *pwentfp; +static __thread TFILE *pwentfp; /* open a connection to the nslcd and write the request */ enum nss_status _nss_ldap_setpwent(int UNUSED(stayopen)) -- cgit v1.2.3