diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-03-29 16:35:38 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-03-29 16:35:38 +0300 |
commit | 5a9c23e2b4ff39ee4c25f67ece56e3d441edfeed (patch) | |
tree | 1096801258842d02d9206156ae0fb587be2a8c78 /src/nxt_port_hash.c | |
parent | 7205bf4b86cfa662a7267afd7c316118084fc600 (diff) | |
download | unit-5a9c23e2b4ff39ee4c25f67ece56e3d441edfeed.tar.gz unit-5a9c23e2b4ff39ee4c25f67ece56e3d441edfeed.tar.bz2 |
Using nxt_lvlhsh_peek() for port hashes.
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); } |