diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-07-20 16:49:41 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-07-20 16:49:41 +0000 |
commit | 52f523e62db350988c0b548670d158c9b0779f9e (patch) | |
tree | 9da85c10fcd79137758990e9757ef4530a2ffaa4 /sys/nfs/nfs_syscalls.c | |
parent | d392a432cf340da23ee3651c237a8cbd7c3ceb99 (diff) |
(struct foo *)0 -> NULL, every where I could find it.
OK blambert@
Diffstat (limited to 'sys/nfs/nfs_syscalls.c')
-rw-r--r-- | sys/nfs/nfs_syscalls.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c index 87edf869da9..966c0ce2af1 100644 --- a/sys/nfs/nfs_syscalls.c +++ b/sys/nfs/nfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_syscalls.c,v 1.83 2009/07/20 11:47:58 blambert Exp $ */ +/* $OpenBSD: nfs_syscalls.c,v 1.84 2009/07/20 16:49:40 thib Exp $ */ /* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */ /* @@ -228,7 +228,7 @@ nfssvc_addsock(fp, mynam) int error, s; so = (struct socket *)fp->f_data; - tslp = (struct nfssvc_sock *)0; + tslp = NULL; /* * Add it to the list, as required. */ @@ -332,7 +332,7 @@ nfssvc_nfsd(struct nfsd *nfsd) else if (slp->ns_flag & SLP_NEEDQ) { slp->ns_flag &= ~SLP_NEEDQ; (void) nfs_sndlock(&slp->ns_solock, - (struct nfsreq *)0); + NULL); nfsrv_rcv(slp->ns_so, (caddr_t)slp, M_WAIT); nfs_sndunlock(&slp->ns_solock); @@ -358,7 +358,7 @@ nfssvc_nfsd(struct nfsd *nfsd) pool_put(&nfsrv_descript_pl, nd); nd = NULL; } - nfsd->nfsd_slp = (struct nfssvc_sock *)0; + nfsd->nfsd_slp = NULL; nfsd->nfsd_flag &= ~NFSD_REQINPROG; nfsrv_slpderef(slp); continue; @@ -369,7 +369,7 @@ nfssvc_nfsd(struct nfsd *nfsd) if (so->so_proto->pr_flags & PR_CONNREQUIRED) solockp = &slp->ns_solock; else - solockp = (int *)0; + solockp = NULL; if (nd) { if (nd->nd_nam2) nd->nd_nam = nd->nd_nam2; @@ -410,7 +410,7 @@ nfssvc_nfsd(struct nfsd *nfsd) } nfsstats.srvrpccnt[nd->nd_procnum]++; nfsrv_updatecache(nd, 1, mreq); - nd->nd_mrep = (struct mbuf *)0; + nd->nd_mrep = NULL; /* FALLTHROUGH */ case RC_REPLY: @@ -426,7 +426,7 @@ nfssvc_nfsd(struct nfsd *nfsd) } m = mreq; m->m_pkthdr.len = siz; - m->m_pkthdr.rcvif = (struct ifnet *)0; + m->m_pkthdr.rcvif = NULL; /* * For stream protocols, prepend a Sun RPC * Record Mark. @@ -436,7 +436,7 @@ nfssvc_nfsd(struct nfsd *nfsd) *mtod(m, u_int32_t *) = htonl(0x80000000 | siz); } if (solockp) - (void) nfs_sndlock(solockp, (struct nfsreq *)0); + (void) nfs_sndlock(solockp, NULL); if (slp->ns_flag & SLP_VALID) error = nfs_send(so, nd->nd_nam2, m, NULL); else { |