summaryrefslogtreecommitdiff
path: root/usr.bin/awk/tran.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-04-20 17:31:32 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-04-20 17:31:32 +0000
commitd72f441b3c28e850b7b66eb6dc6566ab02b32b8b (patch)
tree0858922a5e05213e15a0328818ce90c35cfccef2 /usr.bin/awk/tran.c
parent591150a7e3c5f1b66b2b893003130e19de7d3e0b (diff)
April 16, 1999 version of the "one true awk"--64-bit fixes and more.
Diffstat (limited to 'usr.bin/awk/tran.c')
-rw-r--r--usr.bin/awk/tran.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/awk/tran.c b/usr.bin/awk/tran.c
index cbbb00778ec..a35900df4be 100644
--- a/usr.bin/awk/tran.c
+++ b/usr.bin/awk/tran.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tran.c,v 1.4 1999/04/18 17:06:31 millert Exp $ */
+/* $OpenBSD: tran.c,v 1.5 1999/04/20 17:31:31 millert Exp $ */
/****************************************************************
Copyright (C) Lucent Technologies 1997
All Rights Reserved
@@ -262,11 +262,11 @@ void rehash(Array *tp) /* rehash items in small table into big one */
Cell *lookup(char *s, Array *tp) /* look for s in tp */
{
- Cell *p, *prev = NULL;
+ Cell *p;
int h;
h = hash(s, tp->size);
- for (p = tp->tab[h]; p != NULL; prev = p, p = p->cnext)
+ for (p = tp->tab[h]; p != NULL; p = p->cnext)
if (strcmp(s, p->nval) == 0)
return(p); /* found it */
return(NULL); /* not found */