Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2002 09:50:30 +0000
From:      Dima Dorfman <dima@trit.org>
To:        audit@freebsd.org
Subject:   Re: VT_LOCKSWITCH 
Message-ID:  <20020528095031.1A2D73E5E@turbine.trit.org>
In-Reply-To: <20020528124559.C374@straylight.oblivion.bg>; from roam@ringlet.net on "Tue, 28 May 2002 12:45:59 %2B0300"

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Pentchev <roam@ringlet.net> wrote:
> On Tue, May 28, 2002 at 08:54:20AM +0000, Dima Dorfman wrote:
> > +void
> > +set_lockswitch(char *arg)
> > +{
> > +	int data;
> > +
> > +	if (!strcmp(arg, "off"))
> > +		data =3D 0x01;
> > +	else if (!strcmp(arg, "on"))
> > +		data =3D 0x02;
> > +	else {
> > +		warnx("argument to -S must either on or off");
> 
> A very, very minor nit: should this not be 'must *be* either on or off'? :)

Either that or "must either be".  The same error exists in two other
places in vidcontrol (set_lockswitch() is mostly pasted from
set_mouse()); I'll fix all of them in a separate commit.  Thanks for
catching this!

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020528095031.1A2D73E5E>