summaryrefslogtreecommitdiff
path: root/usr.bin/tic
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2017-05-11 19:13:18 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2017-05-11 19:13:18 +0000
commitbe376849908f9788d86e8bbb5cf1dca0f2e4d653 (patch)
tree79a5312b30d022d4e04eb736523d07e3833bc600 /usr.bin/tic
parentf4ec5e61c27c1088519f37da07be54880c2c17a4 (diff)
Fix the index check in the FNKEY macro. This is only used when
restricting the output to a version usable on AIX or HP-UX. OK tb@
Diffstat (limited to 'usr.bin/tic')
-rw-r--r--usr.bin/tic/dump_entry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tic/dump_entry.c b/usr.bin/tic/dump_entry.c
index ab6cc99d08f..9bb5dfbd7b8 100644
--- a/usr.bin/tic/dump_entry.c
+++ b/usr.bin/tic/dump_entry.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dump_entry.c,v 1.19 2010/01/12 23:22:14 nicm Exp $ */
+/* $OpenBSD: dump_entry.c,v 1.20 2017/05/11 19:13:17 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. *
@@ -41,7 +41,7 @@
#include "termsort.c" /* this C file is generated */
#include <parametrized.h> /* so is this */
-MODULE_ID("$Id: dump_entry.c,v 1.19 2010/01/12 23:22:14 nicm Exp $")
+MODULE_ID("$Id: dump_entry.c,v 1.20 2017/05/11 19:13:17 millert Exp $")
#define INDENT 8
#define DISCARD(string) string = ABSENT_STRING
@@ -293,7 +293,7 @@ dump_predicate(PredType type, PredIdx idx)
static void set_obsolete_termcaps(TERMTYPE *tp);
/* is this the index of a function key string? */
-#define FNKEY(i) (((i)<= 65 && (i)>= 75) || ((i)<= 216 && (i)>= 268))
+#define FNKEY(i) (((i)>= 65 && (i)<= 75) || ((i)>= 216 && (i)<= 268))
/*
* If we configure with a different Caps file, the offsets into the arrays