X-Git-Url: http://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=hash.h;h=cd9363a8b3f5179a2b8a28f911b16a3b2edd51ca;hp=3044c615bb38c27a42ba056009cb240002afa888;hb=de18b56efecadc4b5d2473904828db9c08cd2162;hpb=0f4971d043c38bae1bfb95201622a1405110f899 diff --git a/hash.h b/hash.h index 3044c61..cd9363a 100644 --- a/hash.h +++ b/hash.h @@ -1,11 +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. * - * $Id: hash.h,v 1.4 2003/06/04 20:57:08 noodles Exp $ + * 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__ @@ -13,6 +21,7 @@ #include "keystructs.h" #include "ll.h" +#include "stats.h" #define HASHSIZE 1024 #define HASHMASK 0x3FF @@ -73,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__ */