mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 14:47:09 +00:00
please lint.
git-svn-id: file:///svn/unbound/trunk@180 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
af41706579
commit
e47137ad8d
@ -68,7 +68,7 @@ static void test_deldata(void*, void*);
|
||||
/* --- end test representation --- */
|
||||
|
||||
/** hash func, very bad to improve collisions. */
|
||||
static hashvalue_t myhash(int id) {return id & 0x0f;}
|
||||
static hashvalue_t myhash(int id) {return (hashvalue_t)id & 0x0f;}
|
||||
/** allocate new key, fill in hash. */
|
||||
static struct testkey* newkey(int id) {
|
||||
struct testkey* k = (struct testkey*)calloc(1, sizeof(struct testkey));
|
||||
|
Loading…
Reference in New Issue
Block a user