On Fri, May 29, 2015 at 01:20:31PM -0500, Aravind Gopalakrishnan wrote:
Hmm. That should work. Will simplify it in the next version.Still a good thing to have it as a terminator. But the loop I proposed
I think I had a NULL in flags_options[] to denote the invalid option.
doesn't even touch it: i < N_INJ_TYPES.
I'd leave the NULL array
terminator.
Shall I make err = -EINVAL by default and return that here if theWe have to make sure to not be overeager to error out - this'll make
condition is not satisfied?
using this facility a bit more cumbersome.
So I think your approach was correct to trim it to MAX_FLAG_OPT_SIZE.
__set_inj() will catch any string mismatches anyway.