mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 06:37:08 +00:00
fixes for _t changes.
git-svn-id: file:///svn/unbound/trunk@3992 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
8746283787
commit
709d8223f5
@ -6,7 +6,7 @@
|
||||
#include "util/locks.h"
|
||||
|
||||
/** the lock for ctime buffer */
|
||||
static lock_basic_t ctime_lock;
|
||||
static lock_basic_type ctime_lock;
|
||||
/** has it been inited */
|
||||
static int ctime_r_init = 0;
|
||||
|
||||
|
@ -619,7 +619,8 @@ traverse_post(void (*func)(rbnode_type*, void*), void* arg, rbnode_type* node)
|
||||
}
|
||||
|
||||
void
|
||||
traverse_postorder(rbtree_type* tree, void (*func)(rbnode_type*, void*), void* arg)
|
||||
traverse_postorder(rbtree_type* tree, void (*func)(rbnode_type*, void*),
|
||||
void* arg)
|
||||
{
|
||||
traverse_post(func, arg, tree->root);
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ static void handle_timeouts(struct event_base* base, struct timeval* now,
|
||||
#endif
|
||||
verbose(VERB_CLIENT, "winsock_event handle_timeouts");
|
||||
|
||||
while((rbnode_t*)(p = (struct event*)rbtree_first(base->times))
|
||||
while((rbnode_type*)(p = (struct event*)rbtree_first(base->times))
|
||||
!=RBTREE_NULL) {
|
||||
#ifndef S_SPLINT_S
|
||||
if(p->ev_timeout.tv_sec > now->tv_sec ||
|
||||
|
@ -132,7 +132,7 @@
|
||||
struct event_base
|
||||
{
|
||||
/** sorted by timeout (absolute), ptr */
|
||||
rbtree_t* times;
|
||||
rbtree_type* times;
|
||||
/** array (first part in use) of handles to work on */
|
||||
struct event** items;
|
||||
/** number of items in use in array */
|
||||
@ -169,7 +169,7 @@ struct event_base
|
||||
*/
|
||||
struct event {
|
||||
/** node in timeout rbtree */
|
||||
rbnode_t node;
|
||||
rbnode_type node;
|
||||
/** is event already added */
|
||||
int added;
|
||||
|
||||
|
@ -70,7 +70,7 @@ static int service_cmdline_verbose = 0;
|
||||
/** the cron callback */
|
||||
static struct comm_timer* service_cron = NULL;
|
||||
/** the cron thread */
|
||||
static ub_thread_t cron_thread = NULL;
|
||||
static ub_thread_type cron_thread = NULL;
|
||||
/** if cron has already done its quick check */
|
||||
static int cron_was_quick = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user