diff options
Diffstat (limited to 'gnu/usr.bin/cvs/lib/hash.c')
-rw-r--r-- | gnu/usr.bin/cvs/lib/hash.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gnu/usr.bin/cvs/lib/hash.c b/gnu/usr.bin/cvs/lib/hash.c index afc554d..8ac9323 100644 --- a/gnu/usr.bin/cvs/lib/hash.c +++ b/gnu/usr.bin/cvs/lib/hash.c @@ -10,8 +10,8 @@ #include "cvs.h" #ifndef lint -static char rcsid[] = "$CVSid: @(#)hash.c 1.19 94/09/23 $"; -USE(rcsid) +static const char rcsid[] = "$CVSid: @(#)hash.c 1.19 94/09/23 $"; +USE(rcsid); #endif /* global caches */ @@ -23,7 +23,7 @@ static void freenode_mem PROTO((Node * p)); /* hash function */ static int hashp (key) - char *key; + const char *key; { unsigned int h = 0; unsigned int g; @@ -254,7 +254,7 @@ addnode (list, p) Node * findnode (list, key) List *list; - char *key; + const char *key; { Node *head, *p; @@ -277,7 +277,7 @@ findnode (list, key) int walklist (list, proc, closure) List *list; - int (*proc) (); + int (*proc) PROTO ((Node *, void *)); void *closure; { Node *head, *p; @@ -298,7 +298,7 @@ walklist (list, proc, closure) void sortlist (list, comp) List *list; - int (*comp) (); + int (*comp) PROTO ((const Node *, const Node *)); { Node *head, *remain, *p, *q; @@ -363,7 +363,8 @@ nodetypestring (type) return("<trash>"); } -int +static int printnode PROTO ((Node *, void *)); +static int printnode (node, closure) Node *node; void *closure; |