aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount
diff options
context:
space:
mode:
authorTom Rhodes <trhodes@FreeBSD.org>2003-12-07 23:02:16 +0000
committerTom Rhodes <trhodes@FreeBSD.org>2003-12-07 23:02:16 +0000
commitadfdbe225347aecac54f39eb811c4a2d0773c2f1 (patch)
treef4d7460bad259a8e1887bbcb674aeb4ed06321fe /sbin/mount
parentac198ea65478b715bbbc51dda9c008eeb11a843b (diff)
downloadsrc-adfdbe225347aecac54f39eb811c4a2d0773c2f1.tar.gz
src-adfdbe225347aecac54f39eb811c4a2d0773c2f1.zip
Style change
Notes
Notes: svn path=/head/; revision=123268
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/getmntopts.c2
-rw-r--r--sbin/mount/mount.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c
index 04d2ff222858..603daad8c172 100644
--- a/sbin/mount/getmntopts.c
+++ b/sbin/mount/getmntopts.c
@@ -81,7 +81,7 @@ getmntopts(options, m0, flagp, altflagp)
* ignore the assignment as it's handled elsewhere
*/
p = strchr(opt, '=');
- if (p)
+ if (p != NULL)
*++p = '\0';
/* Scan option table. */
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index 75e72bf64bbe..7806ecc1f202 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -602,7 +602,7 @@ mangle(options, argcp, argv)
if (*p == '-') {
argv[argc++] = p;
p = strchr(p, '=');
- if (p) {
+ if (p != NULL) {
*p = '\0';
argv[argc++] = p+1;
}