summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_bio.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2002-07-11 17:54:58 +0000
committerdillon <dillon@FreeBSD.org>2002-07-11 17:54:58 +0000
commit0b74a2da00ab0a50d30ae736a1eb9cb5c5c5eb11 (patch)
tree29f0ae4a3379cc4eeac2dc5eafc5eafbb5188b48 /sys/nfsclient/nfs_bio.c
parent9180aabc4ca6e999cde1883d5f2fa501c953cd36 (diff)
downloadFreeBSD-src-0b74a2da00ab0a50d30ae736a1eb9cb5c5c5eb11.zip
FreeBSD-src-0b74a2da00ab0a50d30ae736a1eb9cb5c5c5eb11.tar.gz
Convert old style (type foo *)0 casts to NULLs
PR: kern/40360 Requested by: Hiten PAndya via direct email
Diffstat (limited to 'sys/nfsclient/nfs_bio.c')
-rw-r--r--sys/nfsclient/nfs_bio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c
index 29f2da4..b8151c3 100644
--- a/sys/nfsclient/nfs_bio.c
+++ b/sys/nfsclient/nfs_bio.c
@@ -1025,9 +1025,9 @@ nfs_getcacheblk(struct vnode *vp, daddr_t bn, int size, struct thread *td)
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, td))
- return ((struct buf *)0);
+ while (bp == NULL) {
+ if (nfs_sigintr(nmp, NULL, td))
+ return (NULL);
bp = getblk(vp, bn, size, 0, 2 * hz);
}
} else {
@@ -1076,7 +1076,7 @@ nfs_vinvalbuf(struct vnode *vp, int flags, struct ucred *cred,
error = tsleep((caddr_t)&np->n_flag, PRIBIO + 2, "nfsvinval",
slptimeo);
if (error && intrflg &&
- nfs_sigintr(nmp, (struct nfsreq *)0, td))
+ nfs_sigintr(nmp, NULL, td))
return (EINTR);
}
@@ -1087,7 +1087,7 @@ nfs_vinvalbuf(struct vnode *vp, int flags, struct ucred *cred,
error = vinvalbuf(vp, flags, cred, td, slpflag, 0);
while (error) {
if (intrflg &&
- nfs_sigintr(nmp, (struct nfsreq *)0, td)) {
+ nfs_sigintr(nmp, NULL, td)) {
np->n_flag &= ~NFLUSHINPROG;
if (np->n_flag & NFLUSHWANT) {
np->n_flag &= ~NFLUSHWANT;
@@ -1165,7 +1165,7 @@ again:
*/
NFS_DPF(ASYNCIO, ("nfs_asyncio: waking iod %d for mount %p\n",
iod, nmp));
- nfs_iodwant[iod] = (struct proc *)0;
+ nfs_iodwant[iod] = NULL;
nfs_iodmount[iod] = nmp;
nmp->nm_bufqiods++;
wakeup((caddr_t)&nfs_iodwant[iod]);
OpenPOWER on IntegriCloud