/*
* hash.c - 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.c,v 1.9 2003/10/04 10:21:40 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.
*/
#include <stdio.h>
#include "keystructs.h"
#include "ll.h"
#include "mem.h"
+#include "stats.h"
/**
* hashtable - the hash table array.
return elements;
}
-struct ll *gethashtableentry(int entry)
+struct ll *gethashtableentry(unsigned int entry)
{
return hashtable[entry];
}