diff options
Diffstat (limited to 'usr.bin/tn3270/tools/mkhits')
-rw-r--r-- | usr.bin/tn3270/tools/mkhits/dohits.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tn3270/tools/mkhits/dohits.c b/usr.bin/tn3270/tools/mkhits/dohits.c index cf34bac4d21..9158e9bae2e 100644 --- a/usr.bin/tn3270/tools/mkhits/dohits.c +++ b/usr.bin/tn3270/tools/mkhits/dohits.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dohits.c,v 1.2 1996/06/26 05:41:41 deraadt Exp $ */ +/* $OpenBSD: dohits.c,v 1.3 1998/05/02 02:27:18 mickey Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)dohits.c 4.2 (Berkeley) 4/26/91";*/ -static char rcsid[] = "$OpenBSD: dohits.c,v 1.2 1996/06/26 05:41:41 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: dohits.c,v 1.3 1998/05/02 02:27:18 mickey Exp $"; #endif /* not lint */ /* @@ -57,6 +57,7 @@ static char rcsid[] = "$OpenBSD: dohits.c,v 1.2 1996/06/26 05:41:41 deraadt Exp */ #include <stdio.h> +#include <stdlib.h> #if defined(unix) #include <strings.h> #else /* defined(unix) */ @@ -74,8 +75,6 @@ struct Hits Hits[256]; /* one for each of 0x00-0xff */ struct thing *table[100]; -extern char *malloc(); - unsigned int dohash(seed, string) unsigned int seed; @@ -105,6 +104,7 @@ int value; item = &firstentry(second); this = (struct thing *) malloc(sizeof *this); this->next = *item; + this->hits = NULL; *item = this; this->value = value; strcpy(this->name, first); |