summaryrefslogtreecommitdiff
path: root/usr.bin/m4/look.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2002-04-26 16:15:17 +0000
committerMarc Espie <espie@cvs.openbsd.org>2002-04-26 16:15:17 +0000
commit751f1207fc4315779434d03c633db0f5a685a704 (patch)
tree6a606fc3547a1303a7c7a83a07c10fc0a685293e /usr.bin/m4/look.c
parentf9893f673eaa78484fd40b361e55bb60053d9266 (diff)
use ansi function declarations. ok millert@
Diffstat (limited to 'usr.bin/m4/look.c')
-rw-r--r--usr.bin/m4/look.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/usr.bin/m4/look.c b/usr.bin/m4/look.c
index ffb58e05167..ba76e805fda 100644
--- a/usr.bin/m4/look.c
+++ b/usr.bin/m4/look.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: look.c,v 1.9 2002/02/16 21:27:48 millert Exp $ */
+/* $OpenBSD: look.c,v 1.10 2002/04/26 16:15:16 espie Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -57,9 +57,8 @@ static char sccsid[] = "@(#)look.c 8.1 (Berkeley) 6/6/93";
static void freent(ndptr);
-unsigned
-hash(name)
- const char *name;
+unsigned int
+hash(const char *name)
{
unsigned int h = 0;
while (*name)
@@ -71,8 +70,7 @@ hash(name)
* find name in the hash table
*/
ndptr
-lookup(name)
- const char *name;
+lookup(const char *name)
{
ndptr p;
unsigned int h;
@@ -89,8 +87,7 @@ lookup(name)
* The new entry is added in front of a hash bucket.
*/
ndptr
-addent(name)
- const char *name;
+addent(const char *name)
{
unsigned int h;
ndptr p;
@@ -105,8 +102,7 @@ addent(name)
}
static void
-freent(p)
- ndptr p;
+freent(ndptr p)
{
free((char *) p->name);
if (p->defn != null)
@@ -118,9 +114,7 @@ freent(p)
* remove an entry from the hashtable
*/
void
-remhash(name, all)
- const char *name;
- int all;
+remhash(const char *name, int all)
{
unsigned int h;
ndptr xp, tp, mp;