diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-01-18 14:01:21 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-01-18 14:01:21 +0000 |
commit | 82423975df8b8de859c58e84a4248f4749cb8b16 (patch) | |
tree | 2baed639932fc8a4937a7f7b0f81232f9e5d1155 /options.c | |
parent | 66da51b6310baf408d805e0ec2f36f35bdb85339 (diff) | |
parent | 0730dce5abf5e43f8e3820a1d4e8754e61874a3d (diff) | |
download | rtmux-82423975df8b8de859c58e84a4248f4749cb8b16.tar.gz rtmux-82423975df8b8de859c58e84a4248f4749cb8b16.tar.bz2 rtmux-82423975df8b8de859c58e84a4248f4749cb8b16.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -157,8 +157,7 @@ options_value_to_string(struct options_entry *o, union options_value *ov, case OPTIONS_TABLE_CHOICE: s = xstrdup(o->tableentry->choices[ov->number]); break; - case OPTIONS_TABLE_STRING: - case OPTIONS_TABLE_COMMAND: + default: fatalx("not a number option type"); } return (s); @@ -311,6 +310,8 @@ options_default_to_string(const struct options_table_entry *oe) case OPTIONS_TABLE_CHOICE: s = xstrdup(oe->choices[oe->default_num]); break; + default: + fatalx("unknown option type"); } return (s); } @@ -703,7 +704,7 @@ options_get_number(struct options *oo, const char *name) if (o == NULL) fatalx("missing option %s", name); if (!OPTIONS_IS_NUMBER(o)) - fatalx("option %s is not a number", name); + fatalx("option %s is not a number", name); return (o->value.number); } |