use ngx_queue_init()

This commit is contained in:
Igor Sysoev 2007-12-03 11:21:19 +00:00
parent 0134d6b622
commit a9d3a0d37a

View File

@ -116,17 +116,11 @@ ngx_resolver_create(ngx_peer_addr_t *addr, ngx_log_t *log)
r->addr_rbtree.sentinel = &r->addr_sentinel;
r->addr_rbtree.insert = ngx_rbtree_insert_value;
r->name_resend_queue.prev = &r->name_resend_queue;
r->name_resend_queue.next = &r->name_resend_queue;
ngx_queue_init(&r->name_resend_queue);
ngx_queue_init(&r->addr_resend_queue);
r->addr_resend_queue.prev = &r->addr_resend_queue;
r->addr_resend_queue.next = &r->addr_resend_queue;
r->name_expire_queue.prev = &r->name_expire_queue;
r->name_expire_queue.next = &r->name_expire_queue;
r->addr_expire_queue.prev = &r->addr_expire_queue;
r->addr_expire_queue.next = &r->addr_expire_queue;
ngx_queue_init(&r->name_expire_queue);
ngx_queue_init(&r->addr_expire_queue);
r->event->handler = ngx_resolver_resend_handler;
r->event->data = r;