aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2012-03-13 10:04:13 +0000
committerKevin Lo <kevlo@FreeBSD.org>2012-03-13 10:04:13 +0000
commit11753bd018298036761ff7057d6db3188166aec0 (patch)
tree68dc9cb24fb4e9dcea1141e07527c0c5e934fa98 /sys
parent7295465e33dbb21d4bc5f55d6664ef1776a86d76 (diff)
downloadsrc-11753bd018298036761ff7057d6db3188166aec0.tar.gz
src-11753bd018298036761ff7057d6db3188166aec0.zip
Use NULL instead of 0
Notes
Notes: svn path=/head/; revision=232918
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/fdescfs/fdesc_vfsops.c4
-rw-r--r--sys/fs/nullfs/null_vfsops.c4
-rw-r--r--sys/fs/portalfs/portal_vfsops.c4
-rw-r--r--sys/fs/unionfs/union_vfsops.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/sys/fs/fdescfs/fdesc_vfsops.c b/sys/fs/fdescfs/fdesc_vfsops.c
index 2f29f686d448..dc88278c97b2 100644
--- a/sys/fs/fdescfs/fdesc_vfsops.c
+++ b/sys/fs/fdescfs/fdesc_vfsops.c
@@ -98,7 +98,7 @@ fdesc_mount(struct mount *mp)
error = fdesc_allocvp(Froot, -1, FD_ROOT, mp, &rvp);
if (error) {
free(fmp, M_FDESCMNT);
- mp->mnt_data = 0;
+ mp->mnt_data = NULL;
return (error);
}
rvp->v_type = VDIR;
@@ -152,7 +152,7 @@ fdesc_unmount(mp, mntflags)
*/
mtx_lock(&fdesc_hashmtx);
data = mp->mnt_data;
- mp->mnt_data = 0;
+ mp->mnt_data = NULL;
mtx_unlock(&fdesc_hashmtx);
free(data, M_FDESCMNT); /* XXX */
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index 0d70f93d095a..08f722a166d8 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -188,7 +188,7 @@ nullfs_mount(struct mount *mp)
mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag &
(MNTK_MPSAFE | MNTK_SHARED_WRITES);
MNT_IUNLOCK(mp);
- mp->mnt_data = xmp;
+ mp->mnt_data = xmp;
vfs_getnewfsid(mp);
vfs_mountedfrom(mp, target);
@@ -224,7 +224,7 @@ nullfs_unmount(mp, mntflags)
* Finally, throw away the null_mount structure
*/
mntdata = mp->mnt_data;
- mp->mnt_data = 0;
+ mp->mnt_data = NULL;
free(mntdata, M_NULLFSMNT);
return 0;
}
diff --git a/sys/fs/portalfs/portal_vfsops.c b/sys/fs/portalfs/portal_vfsops.c
index 65420907e9c3..62131dc65cc1 100644
--- a/sys/fs/portalfs/portal_vfsops.c
+++ b/sys/fs/portalfs/portal_vfsops.c
@@ -164,7 +164,7 @@ portal_mount(struct mount *mp)
MNT_ILOCK(mp);
mp->mnt_flag |= MNT_LOCAL;
MNT_IUNLOCK(mp);
- mp->mnt_data = fmp;
+ mp->mnt_data = fmp;
vfs_getnewfsid(mp);
vfs_mountedfrom(mp, p);
@@ -213,7 +213,7 @@ portal_unmount(mp, mntflags)
* Finally, throw away the portalmount structure
*/
free(mp->mnt_data, M_PORTALFSMNT); /* XXX */
- mp->mnt_data = 0;
+ mp->mnt_data = NULL;
return (0);
}
diff --git a/sys/fs/unionfs/union_vfsops.c b/sys/fs/unionfs/union_vfsops.c
index 96258fb88649..3c37d8fa1701 100644
--- a/sys/fs/unionfs/union_vfsops.c
+++ b/sys/fs/unionfs/union_vfsops.c
@@ -352,7 +352,7 @@ unionfs_unmount(struct mount *mp, int mntflags)
return (error);
free(ump, M_UNIONFSMNT);
- mp->mnt_data = 0;
+ mp->mnt_data = NULL;
return (0);
}