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