From 2e645a20cbef8049ee3a801d35df2fe7c20dc79f Mon Sep 17 00:00:00 2001 From: Steve Price Date: Sun, 1 Feb 1998 06:16:08 +0000 Subject: XOpen says the void setpwent(void) is correct. Also call setpassent(0) instead of duplicating code, albeit trivial (inspired by NetBSD). PR: 5524 --- lib/libc/gen/getpwent.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index dfe5d3437bdd..1fc4fdd8c263 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -214,15 +214,10 @@ setpassent(stayopen) return(1); } -int +void setpwent() { - _pw_keynum = 0; -#ifdef YP - _pw_stepping_yp = 0; -#endif - _pw_stayopen = 0; - return(1); + (void)setpassent(0); } void -- cgit v1.2.3