From e0d4e91d2b0e8069fc044899cf04a41db3612ffb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 29 Apr 2006 01:14:07 +0000 Subject: * nis/nss_nis/nis-spwd.c (internal_nis_getspent_r): Remove data variable. * nis/nss-nis.h: Define response_t and intern_t. Declare _nis_saveit. * nis/nss_nis/nis-pwd.c: Remove response_t and intern_t definition. (saveit): Renamed to _nis_saveit. Take parameter which is pointer to the intern_t object. Change all users. * nis/nss_nis/nis-grp.c: Remove response_t, intern_t, and saveit definition. Use _nis_saveit instead of saveit. * nis/nss_nis/nis-service.c: Likewise. * nis/nss_nis/nis-initgroups.c: Likewise. (internal_setgrent): Adjust for buffer handling. (internal_getgrent_r): Likewise. * nis/nss_nis/nis-rpc.c: Likewise. --- nis/nss-nis.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'nis/nss-nis.h') diff --git a/nis/nss-nis.h b/nis/nss-nis.h index cdf34c6..5ac968e 100644 --- a/nis/nss-nis.h +++ b/nis/nss-nis.h @@ -36,4 +36,24 @@ yperr2nss (int errval) return __yperr2nss_tab[(unsigned int) errval]; } + +struct response_t +{ + struct response_t *next; + size_t size; + char mem[0]; +}; + +typedef struct intern_t +{ + struct response_t *start; + struct response_t *next; + size_t offset; +} intern_t; + + +extern int _nis_saveit (int instatus, char *inkey, int inkeylen, char *inval, + int invallen, char *indata) attribute_hidden; + + #endif /* nis/nss-nis.h */ -- cgit v1.1