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_bio.c | |
parent | d392a432cf340da23ee3651c237a8cbd7c3ceb99 (diff) |
(struct foo *)0 -> NULL, every where I could find it.
OK blambert@
Diffstat (limited to 'sys/nfs/nfs_bio.c')
-rw-r--r-- | sys/nfs/nfs_bio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index f727197a23e..80748a74a3e 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_bio.c,v 1.59 2009/06/23 08:08:50 jasper Exp $ */ +/* $OpenBSD: nfs_bio.c,v 1.60 2009/07/20 16:49:40 thib Exp $ */ /* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */ /* @@ -429,7 +429,7 @@ again: if (error) return (error); } else if ((n + on) == biosize) { - bp->b_proc = (struct proc *)0; + bp->b_proc = NULL; bp->b_flags |= B_ASYNC; (void)nfs_writebp(bp, 0); } else { @@ -463,9 +463,9 @@ nfs_getcacheblk(vp, bn, size, p) if (nmp->nm_flag & NFSMNT_INT) { bp = getblk(vp, bn, size, PCATCH, 0); - while (bp == (struct buf *)0) { - if (nfs_sigintr(nmp, (struct nfsreq *)0, p)) - return ((struct buf *)0); + while (bp == NULL) { + if (nfs_sigintr(nmp, NULL, p)) + return (NULL); bp = getblk(vp, bn, size, 0, 2 * hz); } } else |