version 1.1, 2012/06/09 11:00:13 |
version 1.2, 2014/01/04 14:09:28 |
|
|
#include "compat_ohash.h" |
#include "compat_ohash.h" |
|
|
struct _ohash_record { |
struct _ohash_record { |
u_int32_t hv; |
uint32_t hv; |
const char *p; |
const char *p; |
}; |
}; |
|
|
Line 328 ohash_qlookup(struct ohash *h, const char *s) |
|
Line 328 ohash_qlookup(struct ohash *h, const char *s) |
|
unsigned int |
unsigned int |
ohash_qlookupi(struct ohash *h, const char *s, const char **e) |
ohash_qlookupi(struct ohash *h, const char *s, const char **e) |
{ |
{ |
u_int32_t hv; |
uint32_t hv; |
|
|
hv = ohash_interval(s, e); |
hv = ohash_interval(s, e); |
return ohash_lookup_interval(h, s, *e, hv); |
return ohash_lookup_interval(h, s, *e, hv); |