Date: Fri, 5 Mar 2004 14:41:44 +0100 From: Stefan Farfeleder <stefan@fafoe.narf.at> To: current@freebsd.org, i386@freebsd.org Subject: Re: [current tinderbox] failure on i386/pc98 Message-ID: <20040305134143.GC968@wombat.fafoe.narf.at> In-Reply-To: <20040305131628.81B747303A@freebsd-current.sentex.ca> References: <20040305131628.81B747303A@freebsd-current.sentex.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 05, 2004 at 08:16:28AM -0500, FreeBSD Tinderbox wrote: > ===> usr.sbin/boot98cfg > cc -O -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /other/tinderbox/CURRENT/i386/pc98/src/usr.sbin/boot98cfg/boot98cfg.c > /other/tinderbox/CURRENT/i386/pc98/src/usr.sbin/boot98cfg/boot98cfg.c: In function `main': > /other/tinderbox/CURRENT/i386/pc98/src/usr.sbin/boot98cfg/boot98cfg.c:200: warning: comparison between pointer and integer > /other/tinderbox/CURRENT/i386/pc98/src/usr.sbin/boot98cfg/boot98cfg.c:217: warning: comparison between pointer and integer Suggested fix: --- src/usr.sbin/boot98cfg/boot98cfg.c.orig Fri Mar 5 14:25:11 2004 +++ src/usr.sbin/boot98cfg/boot98cfg.c Fri Mar 5 14:27:14 2004 @@ -197,7 +197,7 @@ 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 @@ 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); Stefan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040305134143.GC968>