diff options
Diffstat (limited to 'src/nxt_port_hash.c')
-rw-r--r-- | src/nxt_port_hash.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nxt_port_hash.c b/src/nxt_port_hash.c index 6361f220..b23acfb2 100644 --- a/src/nxt_port_hash.c +++ b/src/nxt_port_hash.c @@ -42,13 +42,9 @@ static const nxt_lvlhsh_proto_t lvlhsh_ports_proto nxt_aligned(64) = { nxt_port_t * -nxt_port_hash_first(nxt_lvlhsh_t *port_hash, nxt_lvlhsh_each_t *lhe) +nxt_port_hash_retrieve(nxt_lvlhsh_t *port_hash) { - nxt_memzero(lhe, sizeof(nxt_lvlhsh_each_t)); - - lhe->proto = &lvlhsh_ports_proto; - - return nxt_port_hash_next(port_hash, lhe); + return nxt_lvlhsh_retrieve(port_hash, &lvlhsh_ports_proto, NULL); } |