X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/0f4971d043c38bae1bfb95201622a1405110f899..HEAD:/hash.h diff --git a/hash.h b/hash.h index 3044c61..161fcf5 100644 --- a/hash.h +++ b/hash.h @@ -1,11 +1,20 @@ /* * 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, write to the Free Software Foundation, Inc., 51 + * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef __HASH_H__ @@ -13,6 +22,7 @@ #include "keystructs.h" #include "ll.h" +#include "stats.h" #define HASHSIZE 1024 #define HASHMASK 0x3FF @@ -73,6 +83,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__ */