summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-03-05 15:09:21 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-03-05 15:09:21 +0000
commit93399a590c8dfcfc94035db78f1fde0c2189d786 (patch)
tree9565218adc336e700b2764a71f4c5eb0640d3406 /usr.bin
parent78b7e5b9b3dbaec2c4910a550a511a5dee8e42e6 (diff)
inspect MUST take an int to handle EOF issues correctly on unsigned char
machines. Problem reported by naddy.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/m4/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c
index b1e56a32769..771afc878a5 100644
--- a/usr.bin/m4/main.c
+++ b/usr.bin/m4/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.38 2001/03/02 00:25:24 aaron Exp $ */
+/* $OpenBSD: main.c,v 1.39 2001/03/05 15:09:20 espie Exp $ */
/* $NetBSD: main.c,v 1.12 1997/02/08 23:54:49 cgd Exp $ */
/*-
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.38 2001/03/02 00:25:24 aaron Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.39 2001/03/05 15:09:20 espie Exp $";
#endif
#endif /* not lint */
@@ -162,7 +162,7 @@ static void dump_stack __P((struct position *, int));
static void macro __P((void));
static void initkwds __P((void));
-static ndptr inspect __P((char, char *));
+static ndptr inspect __P((int, char *));
static int do_look_ahead __P((int, const char *));
static void enlarge_stack __P((void));
@@ -492,7 +492,7 @@ outputstr(s)
*/
static ndptr
inspect(c, tp)
- char c;
+ int c;
char *tp;
{
char *name = tp;