From 93f8aa6e04b76a23b0409e3a73b86e7fd318377d Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 21 May 2009 11:24:59 +0000 Subject: refactor protocol reading and writing macros to the common directory, use more logical names and in the PAM module no longer use NSS status codes git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@887 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/aliases.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'nss/aliases.c') diff --git a/nss/aliases.c b/nss/aliases.c index 10d5576..dd27ede 100644 --- a/nss/aliases.c +++ b/nss/aliases.c @@ -33,11 +33,14 @@ static enum nss_status read_aliasent( TFILE *fp,struct aliasent *result, char *buffer,size_t buflen,int *errnop) { - int32_t tmpint32,tmp2int32; + int32_t tmpint32,tmp2int32,tmp3int32; size_t bufptr=0; - /* auto-genereted read code */ - READ_STRING_BUF(fp,result->alias_name); - READ_STRINGLIST_NUM(fp,result->alias_members,result->alias_members_len); + /* read the name of the alias */ + READ_BUF_STRING(fp,result->alias_name); + /* read the members */ + READ_BUF_STRINGLIST(fp,result->alias_members); + /* tmp3int32 holds the number of entries read */ + result->alias_members_len=tmp3int32; /* fill in remaining gaps in struct */ result->alias_local=0; /* we're done */ -- cgit v1.2.3