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

Eric Sandeen
2017-04-26T04:09:38Z

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