From owner-svn-src-all@FreeBSD.ORG Wed Jan 20 05:27:42 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 9F9F5106566C; Wed, 20 Jan 2010 05:27:42 +0000 (UTC) Date: Wed, 20 Jan 2010 05:27:42 +0000 From: Alexey Dokuchaev To: Xin LI Message-ID: <20100120052742.GA80949@FreeBSD.org> References: <201001200043.o0K0hFvk055345@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <201001200043.o0K0hFvk055345@svn.freebsd.org> User-Agent: Mutt/1.4.2.1i 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 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2010 05:27:42 -0000 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