X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=hash.h;h=cd9363a8b3f5179a2b8a28f911b16a3b2edd51ca;hp=6cb02165f1a6a85e68b15ee88522f453197626c4;hb=6d60149434eed130c201d4d670ce7b3be5c2866b;hpb=5913c95f2c7abf4c3cb06e27d384d80fb4c83547 diff --git a/hash.h b/hash.h index 6cb0216..cd9363a 100644 --- a/hash.h +++ b/hash.h @@ -1,9 +1,19 @@ /* * hash.h - hashing routines mainly used for caching key details. * - * Jonathan McDowell + * Copyright 2000-2002 Jonathan McDowell * - * Copyright 2000-2002 Project Purple + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . */ #ifndef __HASH_H__ @@ -11,6 +21,7 @@ #include "keystructs.h" #include "ll.h" +#include "stats.h" #define HASHSIZE 1024 #define HASHMASK 0x3FF @@ -71,6 +82,6 @@ unsigned long hashelements(void); * Gets a particular entry from the hash. Useful for doing something over * all entries in the hash. */ -struct ll *gethashtableentry(int entry); +struct ll *gethashtableentry(unsigned int entry); #endif /* __HASH_H__ */