From 6856d159e828a3b94504afbed3a8cc670cb937bd Mon Sep 17 00:00:00 2001 From: nyan Date: Fri, 5 Mar 2004 13:58:40 +0000 Subject: Use ascii null char ('\0') instead of NULL. Submitted by: Stefan Farfeleder --- usr.sbin/boot98cfg/boot98cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/boot98cfg') 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); -- cgit v1.1