=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/m4/look.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/m4/look.c 2002/02/16 21:27:48 1.9 --- src/usr.bin/m4/look.c 2002/04/26 16:15:16 1.10 *************** *** 1,4 **** ! /* $OpenBSD: look.c,v 1.9 2002/02/16 21:27:48 millert Exp $ */ /* * Copyright (c) 1989, 1993 --- 1,4 ---- ! /* $OpenBSD: look.c,v 1.10 2002/04/26 16:15:16 espie Exp $ */ /* * Copyright (c) 1989, 1993 *************** *** 57,65 **** static void freent(ndptr); ! unsigned ! hash(name) ! const char *name; { unsigned int h = 0; while (*name) --- 57,64 ---- static void freent(ndptr); ! unsigned int ! hash(const char *name) { unsigned int h = 0; while (*name) *************** *** 71,78 **** * find name in the hash table */ ndptr ! lookup(name) ! const char *name; { ndptr p; unsigned int h; --- 70,76 ---- * find name in the hash table */ ndptr ! lookup(const char *name) { ndptr p; unsigned int h; *************** *** 89,96 **** * The new entry is added in front of a hash bucket. */ ndptr ! addent(name) ! const char *name; { unsigned int h; ndptr p; --- 87,93 ---- * The new entry is added in front of a hash bucket. */ ndptr ! addent(const char *name) { unsigned int h; ndptr p; *************** *** 105,112 **** } static void ! freent(p) ! ndptr p; { free((char *) p->name); if (p->defn != null) --- 102,108 ---- } static void ! freent(ndptr p) { free((char *) p->name); if (p->defn != null) *************** *** 118,126 **** * remove an entry from the hashtable */ void ! remhash(name, all) ! const char *name; ! int all; { unsigned int h; ndptr xp, tp, mp; --- 114,120 ---- * remove an entry from the hashtable */ void ! remhash(const char *name, int all) { unsigned int h; ndptr xp, tp, mp;