diff options
author | 2005-04-01 07:44:03 +0000 | |
---|---|---|
committer | 2005-04-01 07:44:03 +0000 | |
commit | 384ec30a651d095cda9dd6c443e0e00a6d20c547 (patch) | |
tree | 3e0758f47e4a82bf2f591cf06e8ed06eb3910e54 /lib/libc/rpc/auth_unix.c | |
parent | connect stat(1) to build (diff) | |
download | wireguard-openbsd-384ec30a651d095cda9dd6c443e0e00a6d20c547.tar.xz wireguard-openbsd-384ec30a651d095cda9dd6c443e0e00a6d20c547.zip |
ansify. ok deraadt@ jaredy@
Diffstat (limited to 'lib/libc/rpc/auth_unix.c')
-rw-r--r-- | lib/libc/rpc/auth_unix.c | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c index 7f2c4d0abfa..22bb22d19de 100644 --- a/lib/libc/rpc/auth_unix.c +++ b/lib/libc/rpc/auth_unix.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: auth_unix.c,v 1.17 2005/01/08 19:17:39 krw Exp $"; +static char *rcsid = "$OpenBSD: auth_unix.c,v 1.18 2005/04/01 07:44:03 otto Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -83,7 +83,7 @@ struct audata { }; #define AUTH_PRIVATE(auth) ((struct audata *)auth->ah_private) -static void marshal_new_auth(); +static void marshal_new_auth(AUTH *auth); /* @@ -91,12 +91,7 @@ static void marshal_new_auth(); * Returns an auth handle with the given stuff in it. */ AUTH * -authunix_create(machname, uid, gid, len, aup_gids) - char *machname; - int uid; - int gid; - int len; - int *aup_gids; +authunix_create(char *machname, int uid, int gid, int len, int *aup_gids) { struct authunix_parms aup; char mymem[MAX_AUTH_BYTES]; @@ -173,7 +168,7 @@ authunix_create(machname, uid, gid, len, aup_gids) * syscalls. */ AUTH * -authunix_create_default() +authunix_create_default(void) { int len, i; char machname[MAX_MACHINE_NAME + 1]; @@ -199,16 +194,13 @@ authunix_create_default() */ /* ARGSUSED */ static void -authunix_nextverf(auth) - AUTH *auth; +authunix_nextverf(AUTH *auth) { /* no action necessary */ } static bool_t -authunix_marshal(auth, xdrs) - AUTH *auth; - XDR *xdrs; +authunix_marshal(AUTH *auth, XDR *xdrs) { struct audata *au = AUTH_PRIVATE(auth); @@ -216,9 +208,7 @@ authunix_marshal(auth, xdrs) } static bool_t -authunix_validate(auth, verf) - AUTH *auth; - struct opaque_auth *verf; +authunix_validate(AUTH *auth, struct opaque_auth *verf) { struct audata *au; XDR xdrs; @@ -246,8 +236,7 @@ authunix_validate(auth, verf) } static bool_t -authunix_refresh(auth) - AUTH *auth; +authunix_refresh(AUTH *auth) { struct audata *au = AUTH_PRIVATE(auth); struct authunix_parms aup; @@ -289,8 +278,7 @@ done: } static void -authunix_destroy(auth) - AUTH *auth; +authunix_destroy(AUTH *auth) { struct audata *au = AUTH_PRIVATE(auth); @@ -312,8 +300,7 @@ authunix_destroy(auth) * sets private data, au_marshed and au_mpos */ static void -marshal_new_auth(auth) - AUTH *auth; +marshal_new_auth(AUTH *auth) { XDR xdr_stream; XDR *xdrs = &xdr_stream; |