X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fhash.c;h=d9aa79bb1f1b93478a9f1dd7c0e135ac7ed62408;hp=351c547a6e023be39352f4d420c85dacb82ab0d3;hb=3243d9ee441e9cd4338965bac7c2ed3b49a3c2dd;hpb=8adff5922376676c2eeb49de1cbab86cc345b887 diff --git a/src/ngircd/hash.c b/src/ngircd/hash.c index 351c547a..d9aa79bb 100644 --- a/src/ngircd/hash.c +++ b/src/ngircd/hash.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: hash.c,v 1.11 2005/03/19 18:43:48 fw Exp $"; +static char UNUSED id[] = "$Id: hash.c,v 1.13 2006/10/06 21:23:47 fw Exp $"; #include "imp.h" #include @@ -27,11 +27,11 @@ static char UNUSED id[] = "$Id: hash.c,v 1.11 2005/03/19 18:43:48 fw Exp $"; #include "hash.h" -LOCAL UINT32 jenkins_hash PARAMS(( register UINT8 *k, register UINT32 length, register UINT32 initval )); +static UINT32 jenkins_hash PARAMS(( register UINT8 *k, register UINT32 length, register UINT32 initval )); GLOBAL UINT32 -Hash( char *String ) +Hash( const char *String ) { /* Hash-Wert ueber String berechnen */ @@ -72,7 +72,7 @@ Hash( char *String ) } /* mix */ -LOCAL UINT32 +static UINT32 jenkins_hash( register UINT8 *k, register UINT32 length, register UINT32 initval ) { /* k: the key