summaryrefslogtreecommitdiff
path: root/pwd/getpw.c
diff options
context:
space:
mode:
Diffstat (limited to 'pwd/getpw.c')
-rw-r--r--pwd/getpw.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/pwd/getpw.c b/pwd/getpw.c
index 5bd5c8267a..0bd2ab9d0d 100644
--- a/pwd/getpw.c
+++ b/pwd/getpw.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -16,7 +16,6 @@ License along with the GNU C Library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
-#include <ansidecl.h>
#include <errno.h>
#include <stdio.h>
#include <pwd.h>
@@ -26,13 +25,15 @@ Cambridge, MA 02139, USA. */
in the given buffer. This knows the format that the caller
will expect, but this need not be the format of the password file. */
int
-DEFUN(getpw, (uid, buf), __uid_t uid AND register char *buf)
+getpw (uid, buf)
+ __uid_t uid;
+ register char *buf;
{
register struct passwd *p;
if (buf == NULL)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}