diff options
author | 1996-03-25 21:54:35 +0000 | |
---|---|---|
committer | 1996-03-25 21:54:35 +0000 | |
commit | 48dcfcdaab65b07f702d337324f16d9469ae9bcd (patch) | |
tree | 684cd9bccfa9ce74fa67d2228ceb079d923750ae /lib/libc/rpc/auth_unix.c | |
parent | Prototype internal functions (diff) | |
download | wireguard-openbsd-48dcfcdaab65b07f702d337324f16d9469ae9bcd.tar.xz wireguard-openbsd-48dcfcdaab65b07f702d337324f16d9469ae9bcd.zip |
Pull prototypes into scope
Remove graticious casts
Diffstat (limited to 'lib/libc/rpc/auth_unix.c')
-rw-r--r-- | lib/libc/rpc/auth_unix.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c index 1310d997ebe..263635e5569 100644 --- a/lib/libc/rpc/auth_unix.c +++ b/lib/libc/rpc/auth_unix.c @@ -49,6 +49,7 @@ static char *rcsid = "$NetBSD: auth_unix.c,v 1.2 1995/02/25 03:01:35 cgd Exp $"; #include <stdio.h> #include <stdlib.h> +#include <unistd.h> #include <rpc/types.h> #include <rpc/xdr.h> @@ -84,7 +85,7 @@ struct audata { }; #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) -static bool_t marshal_new_auth(); +static void marshal_new_auth(); /* @@ -174,9 +175,9 @@ authunix_create_default() { register int len; char machname[MAX_MACHINE_NAME + 1]; - register int uid; - register int gid; - int gids[NGRPS]; + register uid_t uid; + register gid_t gid; + gid_t gids[NGRPS]; if (gethostname(machname, MAX_MACHINE_NAME) == -1) abort(); @@ -305,7 +306,7 @@ authunix_destroy(auth) * Marshals (pre-serializes) an auth struct. * sets private data, au_marshed and au_mpos */ -static bool_t +static void marshal_new_auth(auth) register AUTH *auth; { |