summaryrefslogtreecommitdiff
path: root/tbl/t3.c
diff options
context:
space:
mode:
Diffstat (limited to 'tbl/t3.c')
-rw-r--r--tbl/t3.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tbl/t3.c b/tbl/t3.c
index ff2855283e4c..4ef82df8211c 100644
--- a/tbl/t3.c
+++ b/tbl/t3.c
@@ -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