On Tue, 15 Feb 2011 01:19:45 +0100
"Julian H. Stacey" <[email protected]> wrote:

> Could author [email protected] cc'd (or someone else if they are clear)
> please explain what cmdline is ? 
> Possibly commit an appended // comment after "int cmdline = 0;" 
> (in line 76 of 8.1 & current src/sbin/mdconfig/mdconfig.c) wgat it's for ?
> 
>       (cmdline seems in most places to maybe be an enum { 1
>       2 3 } for { a d l } alternate forms of command mdconfig,
>       ... & yet case 'd': sets cmdline = 3 not 2 ?
>       (& 't' & 'f' sets cmdline=2 ; not 1.    Puzzling.
> 

It's simply a state machine to ensure that mutually exclusive options
aren't used together.  See the manpage; it's pretty clear from it that
only certain combinations of options are allowed.

-- 
Gary Jennejohn
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to