diff options
author | 1996-03-25 21:22:10 +0000 | |
---|---|---|
committer | 1996-03-25 21:22:10 +0000 | |
commit | 40e70c784da2b7068d07765db16b8a98c38101b5 (patch) | |
tree | d27c744878cff06d6658b0a725f5f98c0b28d7ce /lib/libc | |
parent | Minor cleanup (diff) | |
download | wireguard-openbsd-40e70c784da2b7068d07765db16b8a98c38101b5.tar.xz wireguard-openbsd-40e70c784da2b7068d07765db16b8a98c38101b5.zip |
Add prototypes for internal functions
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/compat-43/setrgid.c | 6 | ||||
-rw-r--r-- | lib/libc/compat-43/setruid.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/compat-43/setrgid.c b/lib/libc/compat-43/setrgid.c index d5f9d27ab10..f8840fea895 100644 --- a/lib/libc/compat-43/setrgid.c +++ b/lib/libc/compat-43/setrgid.c @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)setrgid.c 5.5 (Berkeley) 2/23/91";*/ -static char *rcsid = "$Id: setrgid.c,v 1.1.1.1 1995/10/18 08:41:46 deraadt Exp $"; +static char *rcsid = "$Id: setrgid.c,v 1.2 1996/03/25 21:22:10 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -41,12 +41,14 @@ static char *rcsid = "$Id: setrgid.c,v 1.1.1.1 1995/10/18 08:41:46 deraadt Exp $ __warn_references(setrgid, "warning: this program uses setrgid(), which is deprecated."); +extern int __setregid __P((gid_t, gid_t)); + int #ifdef __STDC__ setrgid(gid_t rgid) #else setrgid(rgid) - int rgid; + gid_t rgid; #endif { return (__setregid(rgid, -1)); diff --git a/lib/libc/compat-43/setruid.c b/lib/libc/compat-43/setruid.c index 261ab187c7e..f512b0f0a02 100644 --- a/lib/libc/compat-43/setruid.c +++ b/lib/libc/compat-43/setruid.c @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)setruid.c 5.5 (Berkeley) 2/23/91";*/ -static char *rcsid = "$Id: setruid.c,v 1.1.1.1 1995/10/18 08:41:46 deraadt Exp $"; +static char *rcsid = "$Id: setruid.c,v 1.2 1996/03/25 21:22:11 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -41,12 +41,14 @@ static char *rcsid = "$Id: setruid.c,v 1.1.1.1 1995/10/18 08:41:46 deraadt Exp $ __warn_references(setruid, "warning: this program uses setruid(), which is deprecated."); +extern int __setreuid __P((uid_t, uid_t)); + int #ifdef __STDC__ setruid(uid_t ruid) #else setruid(ruid) - int ruid; + uid_t ruid; #endif { return (__setreuid(ruid, -1)); |