summaryrefslogtreecommitdiff
path: root/usr.bin/m4/main.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-11-25 00:54:23 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-11-25 00:54:23 +0000
commit061c204fd5428b1e1b2a68fecd184d96c2932f7b (patch)
tree8c5443e22be6155a7c5c1ebbbb2e4079bf21e13e /usr.bin/m4/main.c
parent253bd7cb90b62c899b13f6d8de98bed6eb406b51 (diff)
From espie@openbsd.org:
o Add a missing 'unsigned' to 'h' in remhash() o Say 'unsigned int' not just 'unsigned'
Diffstat (limited to 'usr.bin/m4/main.c')
-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 93b7952b0ac..cbd2ec4fd29 100644
--- a/usr.bin/m4/main.c
+++ b/usr.bin/m4/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.19 1999/11/20 17:48:59 espie Exp $ */
+/* $OpenBSD: main.c,v 1.20 1999/11/25 00:54:22 millert 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.19 1999/11/20 17:48:59 espie Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.20 1999/11/25 00:54:22 millert Exp $";
#endif
#endif /* not lint */
@@ -440,7 +440,7 @@ inspect(tp)
char *name = tp;
char *etp = tp+MAXTOK;
ndptr p;
- unsigned h = 0;
+ unsigned int h = 0;
while ((isalnum(c = gpbc()) || c == '_') && tp < etp)
h = (h << 5) + h + (*tp++ = c);
@@ -467,7 +467,7 @@ static void
initkwds()
{
size_t i;
- unsigned h;
+ unsigned int h;
ndptr p;
for (i = 0; i < MAXKEYS; i++) {