diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-05-29 21:22:58 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-05-29 21:22:58 +0000 |
commit | f91b33e7b87b0447029e9b7593b796c3b9d0d0b0 (patch) | |
tree | cb66705231e6c4480c62c3b690867c426cf2763b /nss/passwd.c | |
parent | 7c32d0121c95bbb05ab064b29bf7ec2ba5defc00 (diff) |
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 (import of r887 from nss-pam-ldapd)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@904 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/passwd.c')
-rw-r--r-- | nss/passwd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nss/passwd.c b/nss/passwd.c index 29d70fc..eb5e71b 100644 --- a/nss/passwd.c +++ b/nss/passwd.c @@ -36,13 +36,13 @@ static enum nss_status read_passwd( { int32_t tmpint32; size_t bufptr=0; - READ_STRING_BUF(fp,result->pw_name); - READ_STRING_BUF(fp,result->pw_passwd); + READ_BUF_STRING(fp,result->pw_name); + READ_BUF_STRING(fp,result->pw_passwd); READ_TYPE(fp,result->pw_uid,uid_t); READ_TYPE(fp,result->pw_gid,gid_t); - READ_STRING_BUF(fp,result->pw_gecos); - READ_STRING_BUF(fp,result->pw_dir); - READ_STRING_BUF(fp,result->pw_shell); + READ_BUF_STRING(fp,result->pw_gecos); + READ_BUF_STRING(fp,result->pw_dir); + READ_BUF_STRING(fp,result->pw_shell); return NSS_STATUS_SUCCESS; } |