summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/m4/look.c10
-rw-r--r--usr.bin/m4/main.c8
2 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/m4/look.c b/usr.bin/m4/look.c
index d036293fcca..22ed2cfc202 100644
--- a/usr.bin/m4/look.c
+++ b/usr.bin/m4/look.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: look.c,v 1.6 1999/11/20 17:48:59 espie Exp $ */
+/* $OpenBSD: look.c,v 1.7 1999/11/25 00:54:22 millert Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -61,7 +61,7 @@ unsigned
hash(name)
const char *name;
{
- unsigned h = 0;
+ unsigned int h = 0;
while (*name)
h = (h << 5) + h + *name++;
return (h);
@@ -75,7 +75,7 @@ lookup(name)
const char *name;
{
ndptr p;
- unsigned h;
+ unsigned int h;
h = hash(name);
for (p = hashtab[h % HASHSIZE]; p != nil; p = p->nxtptr)
@@ -92,7 +92,7 @@ ndptr
addent(name)
const char *name;
{
- unsigned h;
+ unsigned int h;
ndptr p;
h = hash(name);
@@ -124,7 +124,7 @@ remhash(name, all)
const char *name;
int all;
{
- int h;
+ unsigned int h;
ndptr xp, tp, mp;
h = hash(name);
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++) {