Re: [PATCH 04/12] mkfs: merge tables for opts parsing into one table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/25/17 4:45 PM, Eric Sandeen wrote:
> and making sure there's never a mismatch between the case value and the
> value passed to getnum, you could do something like:
> 
>     int so = getsubopt(&p, subopts, &value);
> 
>     switch (so) {
>     case OPT1:
>             opt1 = getnum(value, &opts, so);
>     case OPT2:
>             opt2 = getnum(value, &opts, so);

(but not "so" - not sure why I typed that.  Perhaps "subopt")

-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux