Date: Wed, 20 Jan 2010 05:27:42 +0000 From: Alexey Dokuchaev <danfe@FreeBSD.org> To: Xin LI <delphij@FreeBSD.org> Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-8@freebsd.org Subject: Re: svn commit: r202662 - stable/8/usr.sbin/burncd Message-ID: <20100120052742.GA80949@FreeBSD.org> In-Reply-To: <201001200043.o0K0hFvk055345@svn.freebsd.org> References: <201001200043.o0K0hFvk055345@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 20, 2010 at 12:43:15AM +0000, Xin LI wrote: > @@ -147,6 +144,15 @@ main(int argc, char **argv) > argc -= optind; > argv += optind; > > + if (env_speed == NULL) > + ; > + else if (strcasecmp("max", env_speed) == 0) > + speed = CDR_MAX_SPEED; > + else > + speed = atoi(env_speed) * 177; > + if (speed <= 0) > + errx(EX_USAGE, "Invalid speed: %s", optarg); ^^^^^^ This does not seem correct: ------------------------'''''' $ burncd -s foo -f bar burncd: Invalid speed: bar ./danfe
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100120052742.GA80949>