=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/options.c,v retrieving revision 1.60 retrieving revision 1.61 diff -u -r1.60 -r1.61 --- src/usr.bin/tmux/options.c 2020/08/25 11:35:32 1.60 +++ src/usr.bin/tmux/options.c 2021/01/18 11:14:23 1.61 @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.60 2020/08/25 11:35:32 nicm Exp $ */ +/* $OpenBSD: options.c,v 1.61 2021/01/18 11:14:23 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -157,8 +157,7 @@ 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 @@ case OPTIONS_TABLE_CHOICE: s = xstrdup(oe->choices[oe->default_num]); break; + default: + fatalx("unknown option type"); } return (s); } @@ -703,7 +704,7 @@ 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); }