diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-01-30 12:14:49 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-01-30 12:14:49 +0300 |
commit | 952291c93c96c1dc5b63576e0ee034efde998b18 (patch) | |
tree | 6f7555b7f566155c4ccf4ec40eaeae814ce8d55f /src/nxt_event_timer.c | |
parent | ba0391577b06446307fa073f856f57748557e0dd (diff) | |
download | unit-952291c93c96c1dc5b63576e0ee034efde998b18.tar.gz unit-952291c93c96c1dc5b63576e0ee034efde998b18.tar.bz2 |
Importing rbtree changes from nJScript.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_event_timer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_event_timer.c b/src/nxt_event_timer.c index e9615f92..56514683 100644 --- a/src/nxt_event_timer.c +++ b/src/nxt_event_timer.c @@ -22,7 +22,7 @@ * the changes array and should be used only if the timer memory must be freed. */ -static nxt_int_t nxt_event_timer_rbtree_compare(nxt_rbtree_node_t *node1, +static intptr_t nxt_event_timer_rbtree_compare(nxt_rbtree_node_t *node1, nxt_rbtree_node_t *node2); static void nxt_event_timer_change(nxt_event_timers_t *timers, nxt_event_timer_t *ev, nxt_msec_t time); @@ -34,7 +34,7 @@ static void nxt_event_timer_drop_changes(nxt_event_timers_t *timers, nxt_int_t nxt_event_timers_init(nxt_event_timers_t *timers, nxt_uint_t mchanges) { - nxt_rbtree_init(&timers->tree, nxt_event_timer_rbtree_compare, NULL); + nxt_rbtree_init(&timers->tree, nxt_event_timer_rbtree_compare); timers->mchanges = mchanges; @@ -48,7 +48,7 @@ nxt_event_timers_init(nxt_event_timers_t *timers, nxt_uint_t mchanges) } -static nxt_int_t +static intptr_t nxt_event_timer_rbtree_compare(nxt_rbtree_node_t *node1, nxt_rbtree_node_t *node2) { |