diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-06-25 18:24:00 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-06-25 18:24:00 +0000 |
commit | ca2737da207f6fe4466230b72fee6ef04089358c (patch) | |
tree | a9cb32e5c797e12efa86ecc64382de32f3732212 /sbin/mount_nfs/mount_nfs.c | |
parent | 008c591b34a4c60de78eea51671e83a433bb1037 (diff) |
(foo *)0 -> NULL
Diffstat (limited to 'sbin/mount_nfs/mount_nfs.c')
-rw-r--r-- | sbin/mount_nfs/mount_nfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index 0121443c36c..11a927a1586 100644 --- a/sbin/mount_nfs/mount_nfs.c +++ b/sbin/mount_nfs/mount_nfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_nfs.c,v 1.9 1997/04/20 15:37:26 deraadt Exp $ */ +/* $OpenBSD: mount_nfs.c,v 1.10 1997/06/25 18:23:59 kstailey Exp $ */ /* $NetBSD: mount_nfs.c,v 1.12.4.1 1996/05/25 22:48:05 fvdl Exp $ */ /* @@ -495,7 +495,7 @@ main(argc, argv) */ if (kret == KSUCCESS && ktick.kt.length <= (RPCAUTH_MAXSIZ-3*NFSX_UNSIGNED) - && gettimeofday(&ktv, (struct timezone *)0) == 0) { + && gettimeofday(&ktv, NULL) == 0) { ncd.ncd_authtype = RPCAUTH_KERB4; ncd.ncd_authstr = (u_char *)&ktick; ncd.ncd_authlen = nfsm_rndup(ktick.kt.length) + @@ -609,7 +609,7 @@ getnfsargs(spec, nfsargsp) if (inet_aton(hostp, &saddr.sin_addr) != 0) { if ((nfsargsp->flags & NFSMNT_KERB)) { if ((hp = gethostbyaddr((char *)&saddr.sin_addr.s_addr, - sizeof (u_long), AF_INET)) == (struct hostent *)0) { + sizeof (u_long), AF_INET)) == NULL) { warnx("can't resolve hostname for address %s", hostp); return (0); |