|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: icdb.c,v 1.4 2015/12/10 18:06:06 tedu Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: icdb.c,v 1.5 2015/12/27 01:26:47 chl Exp $ */ |
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> |
|
|
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> |
|
|
* |
|
|
* |
|
@ -214,7 +214,6 @@ int |
|
|
icdb_lookup(struct icdb *db, int keynum, const void *key, void *entry, uint32_t *idxp) |
|
|
icdb_lookup(struct icdb *db, int keynum, const void *key, void *entry, uint32_t *idxp) |
|
|
{ |
|
|
{ |
|
|
struct icdbinfo *info = db->info; |
|
|
struct icdbinfo *info = db->info; |
|
|
uint32_t entrysize = info->entrysize; |
|
|
|
|
|
uint32_t offset; |
|
|
uint32_t offset; |
|
|
uint64_t hash; |
|
|
uint64_t hash; |
|
|
uint32_t indexsize, idxmask, idxlen; |
|
|
uint32_t indexsize, idxmask, idxlen; |
|
|