aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-15 17:28:24 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-15 17:28:24 +0000
commit0d3e502f9213fcfd816ff4075505b41e978f106f (patch)
treee292bf076ee3b3d07fb6fe2ddde5768ad9eac60f /sys/fs
parent9f915a92c799be0097f3376d799ddbdbc5a03912 (diff)
downloadsrc-0d3e502f9213fcfd816ff4075505b41e978f106f.tar.gz
src-0d3e502f9213fcfd816ff4075505b41e978f106f.zip
fs misc: for pointers replace 0 with NULL.
Mostly cosmetical, no functional change. Found with devel/coccinelle.
Notes
Notes: svn path=/head/; revision=298074
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/cd9660/cd9660_vfsops.c4
-rw-r--r--sys/fs/msdosfs/msdosfs_conv.c4
-rw-r--r--sys/fs/msdosfs/msdosfs_fat.c4
-rw-r--r--sys/fs/msdosfs/msdosfs_lookup.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
index bf18094639ee..649b01adb83f 100644
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -709,7 +709,7 @@ cd9660_vget_internal(mp, ino, flags, vpp, relocated, isodir)
if (error || *vpp != NULL)
return (error);
- if (isodir == 0) {
+ if (isodir == NULL) {
int lbn, off;
lbn = lblkno(imp, ino);
@@ -759,7 +759,7 @@ cd9660_vget_internal(mp, ino, flags, vpp, relocated, isodir)
}
#endif
} else
- bp = 0;
+ bp = NULL;
ip->i_mnt = imp;
diff --git a/sys/fs/msdosfs/msdosfs_conv.c b/sys/fs/msdosfs/msdosfs_conv.c
index fc9b4d4be265..efed30ca50fc 100644
--- a/sys/fs/msdosfs/msdosfs_conv.c
+++ b/sys/fs/msdosfs/msdosfs_conv.c
@@ -353,7 +353,7 @@ unix2dosfn(const u_char *un, u_char dn[12], size_t unlen, u_int gen,
* ignores all dots before extension, and use all
* chars as filename except for dots.
*/
- dp = dp1 = 0;
+ dp = dp1 = NULL;
for (cp = un + 1, i = unlen - 1; --i >= 0;) {
switch (*cp++) {
case '.':
@@ -365,7 +365,7 @@ unix2dosfn(const u_char *un, u_char dn[12], size_t unlen, u_int gen,
default:
if (dp1)
dp = dp1;
- dp1 = 0;
+ dp1 = NULL;
break;
}
}
diff --git a/sys/fs/msdosfs/msdosfs_fat.c b/sys/fs/msdosfs/msdosfs_fat.c
index cf03e00654e2..5df053ccdefc 100644
--- a/sys/fs/msdosfs/msdosfs_fat.c
+++ b/sys/fs/msdosfs/msdosfs_fat.c
@@ -256,14 +256,14 @@ fc_lookup(struct denode *dep, u_long findcn, u_long *frcnp, u_long *fsrcnp)
{
int i;
u_long cn;
- struct fatcache *closest = 0;
+ struct fatcache *closest = NULL;
ASSERT_VOP_LOCKED(DETOV(dep), "fc_lookup");
for (i = 0; i < FC_SIZE; i++) {
cn = dep->de_fc[i].fc_frcn;
if (cn != FCE_EMPTY && cn <= findcn) {
- if (closest == 0 || cn > closest->fc_frcn)
+ if (closest == NULL || cn > closest->fc_frcn)
closest = &dep->de_fc[i];
}
}
diff --git a/sys/fs/msdosfs/msdosfs_lookup.c b/sys/fs/msdosfs/msdosfs_lookup.c
index 0d038310f79d..f7955f20a540 100644
--- a/sys/fs/msdosfs/msdosfs_lookup.c
+++ b/sys/fs/msdosfs/msdosfs_lookup.c
@@ -454,7 +454,7 @@ found:
* in a deadlock.
*/
brelse(bp);
- bp = 0;
+ bp = NULL;
foundroot:
/*