diff options
Diffstat (limited to 'tbl/t3.c')
-rw-r--r-- | tbl/t3.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -25,7 +25,9 @@ # include "t..c" # include <string.h> # include <stdlib.h> -struct optstr {char *optnam; int *optadd;} options [] = { +# include "global.h" + +static struct optstr {const char *optnam; int *optadd;} options [] = { { "expand", &expflg }, { "EXPAND", &expflg }, { "center", &ctrflg }, @@ -82,7 +84,7 @@ getcomm(void) { if (!letter(c)) continue; found=0; for(lp= options; lp->optnam; lp++) { - if (prefix(lp->optnam, cp)) { + if (prefix(cp, lp->optnam)) { cp += strlen(lp->optnam); if (letter(*cp)) return |