diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-15 17:28:24 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-15 17:28:24 +0000 |
commit | 0d3e502f9213fcfd816ff4075505b41e978f106f (patch) | |
tree | e292bf076ee3b3d07fb6fe2ddde5768ad9eac60f /sys/fs/msdosfs/msdosfs_conv.c | |
parent | 9f915a92c799be0097f3376d799ddbdbc5a03912 (diff) | |
download | src-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/msdosfs/msdosfs_conv.c')
-rw-r--r-- | sys/fs/msdosfs/msdosfs_conv.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |