about summary refs log tree commit diff
path: root/sysdeps/posix/cuserid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/cuserid.c')
-rw-r--r--sysdeps/posix/cuserid.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sysdeps/posix/cuserid.c b/sysdeps/posix/cuserid.c
index b874e909ce..2fe535ea1d 100644
--- a/sysdeps/posix/cuserid.c
+++ b/sysdeps/posix/cuserid.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 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,22 +16,19 @@ 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 <stdio.h>
 #include <string.h>
 #include <pwd.h>
 
-extern int EXFUN(geteuid, (NOARGS));
-
-
 /* Return the username of the caller.
    If S is not NULL, it points to a buffer of at least L_cuserid bytes
    into which the name is copied; otherwise, a static buffer is used.  */
 char *
-DEFUN(cuserid, (s), char *s)
+cuserid (s)
+     char *s;
 {
   static char name[L_cuserid];
-  struct passwd *pwent = getpwuid(geteuid());
+  struct passwd *pwent = getpwuid (geteuid ());
 
   if (pwent == NULL)
     {
@@ -42,5 +39,5 @@ DEFUN(cuserid, (s), char *s)
 
   if (s == NULL)
     s = name;
-  return strcpy(s, pwent->pw_name);
+  return strcpy (s, pwent->pw_name);
 }