Refactor MON_CMD and MON_OPT_TYPE conversion to/from strings
authorJennifer Richards <jennifer@painless-security.com>
Fri, 1 Jun 2018 20:43:24 +0000 (16:43 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Fri, 1 Jun 2018 20:43:24 +0000 (16:43 -0400)
commit6e11d4796b7b7b8a4ce27b12ce43080e4bc9e687
tree23be540428d81040e2ad1ad72eeb2c3261478e36
parent240db3f1e5143b5eae6d6d5b81bb83a128f8450c
Refactor MON_CMD and MON_OPT_TYPE conversion to/from strings

Use a table in place of ad hoc switch statements, hopefully this is
less effort to maintain.
include/mon_internal.h
mon/mon_common.c