diff options
author | nyan <nyan@FreeBSD.org> | 2004-03-05 13:58:40 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2004-03-05 13:58:40 +0000 |
commit | 6856d159e828a3b94504afbed3a8cc670cb937bd (patch) | |
tree | 7aecdb15416dbb634d0bb1ec1981bf86e7cb0f39 /usr.sbin | |
parent | d23ba575570676b3ecb3e389ca6d6560d25136bf (diff) | |
download | FreeBSD-src-6856d159e828a3b94504afbed3a8cc670cb937bd.zip FreeBSD-src-6856d159e828a3b94504afbed3a8cc670cb937bd.tar.gz |
Use ascii null char ('\0') instead of NULL.
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/boot98cfg/boot98cfg.c | 4 |
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); |