]> the.earth.li Git - onak.git/blobdiff - hash.h
Fix compilation with later versions of Nettle
[onak.git] / hash.h
diff --git a/hash.h b/hash.h
index 3044c615bb38c27a42ba056009cb240002afa888..cd9363a8b3f5179a2b8a28f911b16a3b2edd51ca 100644 (file)
--- a/hash.h
+++ b/hash.h
@@ -1,11 +1,19 @@
 /*
  * hash.h - hashing routines mainly used for caching key details.
  *
- * Jonathan McDowell <noodles@earth.li>
+ * Copyright 2000-2002 Jonathan McDowell <noodles@earth.li>
  *
- * 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 <https://www.gnu.org/licenses/>.
  */
 
 #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__ */