summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/boot98cfg/boot98cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/boot98cfg/boot98cfg.c b/usr.sbin/boot98cfg/boot98cfg.c
index 7ab9c2b..c4575c8 100644
--- a/usr.sbin/boot98cfg/boot98cfg.c
+++ b/usr.sbin/boot98cfg/boot98cfg.c
@@ -197,7 +197,7 @@ main(int argc, char *argv[])
break;
case 's':
secsize = strtol(optarg, &endptr, 0);
- if (errno || *optarg == NULL || *endptr)
+ if (errno || *optarg == '\0' || *endptr)
errx(1, "%s: Bad argument to -s option",
optarg);
switch (secsize) {
@@ -214,7 +214,7 @@ main(int argc, char *argv[])
case 'v':
v_flag = 1;
version = strtol(optarg, &endptr, 0);
- if (errno || *optarg == NULL || *endptr ||
+ if (errno || *optarg == '\0' || *endptr ||
version < 0 || version > 255)
errx(1, "%s: Bad argument to -s option",
optarg);
OpenPOWER on IntegriCloud