diff options
author | 2005-01-08 19:17:39 +0000 | |
---|---|---|
committer | 2005-01-08 19:17:39 +0000 | |
commit | 3f820ea1b1ad27dd0571659ab8188721e264385a (patch) | |
tree | 38fb5aec02b2404317c0ffe1c3d995d85013eb1b /lib/libc/rpc/auth_unix.c | |
parent | Use the handler specified in phandler instead of always using (diff) | |
download | wireguard-openbsd-3f820ea1b1ad27dd0571659ab8188721e264385a.tar.xz wireguard-openbsd-3f820ea1b1ad27dd0571659ab8188721e264385a.zip |
Bit of KNF - replace (<type> *)0 and (<type> *)NULL with NULL. Pointed
out by mickey@, seconded by millert@.
ok deraadt@.
Diffstat (limited to 'lib/libc/rpc/auth_unix.c')
-rw-r--r-- | lib/libc/rpc/auth_unix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c index b63894f9473..7f2c4d0abfa 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.16 2003/09/20 00:39:39 deraadt Exp $"; +static char *rcsid = "$OpenBSD: auth_unix.c,v 1.17 2005/01/08 19:17:39 krw Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -131,7 +131,7 @@ authunix_create(machname, uid, gid, len, aup_gids) /* * fill in param struct from the given params */ - (void)gettimeofday(&now, (struct timezone *)0); + (void)gettimeofday(&now, NULL); aup.aup_time = now.tv_sec; aup.aup_machname = machname; aup.aup_uid = uid; @@ -263,7 +263,7 @@ authunix_refresh(auth) /* first deserialize the creds back into a struct authunix_parms */ aup.aup_machname = NULL; - aup.aup_gids = (int *)NULL; + aup.aup_gids = NULL; xdrmem_create(&xdrs, au->au_origcred.oa_base, au->au_origcred.oa_length, XDR_DECODE); stat = xdr_authunix_parms(&xdrs, &aup); @@ -271,7 +271,7 @@ authunix_refresh(auth) goto done; /* update the time and serialize in place */ - (void)gettimeofday(&now, (struct timezone *)0); + (void)gettimeofday(&now, NULL); aup.aup_time = now.tv_sec; xdrs.x_op = XDR_ENCODE; XDR_SETPOS(&xdrs, 0); |