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/protocols.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nss/protocols.c') diff --git a/nss/protocols.c b/nss/protocols.c index eb8ba87..1f5d877 100644 --- a/nss/protocols.c +++ b/nss/protocols.c @@ -31,7 +31,7 @@ #include "compat/attrs.h" static enum nss_status read_protoent( - FILE *fp,struct protoent *result, + TFILE *fp,struct protoent *result, char *buffer,size_t buflen,int *errnop) { int32_t tmpint32,tmp2int32,tmp3int32; @@ -57,7 +57,7 @@ enum nss_status _nss_ldap_getprotobynumber_r(int number,struct protoent *result, } /* thread-local file pointer to an ongoing request */ -static __thread FILE *protoentfp; +static __thread TFILE *protoentfp; enum nss_status _nss_ldap_setprotoent(int UNUSED(stayopen)) { -- cgit v1.2.3