From 86020671d0f225a2c606cedabd2521b41abd9329 Mon Sep 17 00:00:00 2001 From: trhodes Date: Sun, 7 Dec 2003 23:02:16 +0000 Subject: Style change --- sbin/mount/getmntopts.c | 2 +- sbin/mount/mount.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/mount') diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c index 04d2ff2..603daad 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 75e72bf..7806ecc 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; } -- cgit v1.1