X/Open 1170 defines the return type of setpwent() to be void -- a trival

change since our setpwent() allways succeeded.
This commit is contained in:
jtc 1993-10-25 22:21:36 +00:00
parent 71b80edde6
commit 92ba83edfc
3 changed files with 5 additions and 6 deletions

View File

@ -1 +1 @@
revision 1.2 intentionally removed
revision 1.3 intentionally removed

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)getpwent.3 6.8 (Berkeley) 4/19/91
.\" $Id: getpwent.3,v 1.2 1993/07/30 08:36:42 mycroft Exp $
.\" $Id: getpwent.3,v 1.3 1993/10/25 22:23:39 jtc Exp $
.\"
.Dd April 19, 1991
.Dt GETPWENT 3
@ -54,7 +54,7 @@
.Fn getpwuid "uid_t uid"
.Ft int
.Fn setpassent "int stayopen"
.Ft int
.Ft void
.Fn setpwent void
.Ft void
.Fn endpwent void

View File

@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)getpwent.c 5.21 (Berkeley) 3/14/91";*/
static char *rcsid = "$Id: getpwent.c,v 1.7 1993/08/26 00:44:42 jtc Exp $";
static char *rcsid = "$Id: getpwent.c,v 1.8 1993/10/25 22:23:40 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@ -376,7 +376,7 @@ setpassent(stayopen)
return(1);
}
int
void
setpwent()
{
_pw_keynum = 0;
@ -387,7 +387,6 @@ setpwent()
free(__ypcurrent);
__ypcurrent = NULL;
#endif
return(1);
}
void