Loading src/common/compat.c +0 −1 Original line number Diff line number Diff line Loading @@ -2824,7 +2824,6 @@ compute_num_cpus(void) return num_cpus; } #if !defined(_WIN32) /** Defined iff we need to add locks when defining fake versions of reentrant * versions of time-related functions. */ Loading src/common/compat_time.c +1 −0 Original line number Diff line number Diff line Loading @@ -626,3 +626,4 @@ monotime_coarse_absolute_msec(void) return monotime_coarse_absolute_nsec() / ONE_MILLION; } #endif src/common/timers.h +2 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,8 @@ struct monotime_t; typedef struct timeout tor_timer_t; typedef void (*timer_cb_fn_t)(tor_timer_t *, void *, const struct monotime_t *); typedef void (*timer_cb_fn_t)(tor_timer_t *, void *, const struct monotime_t *); tor_timer_t *timer_new(timer_cb_fn_t cb, void *arg); void timer_set_cb(tor_timer_t *t, timer_cb_fn_t cb, void *arg); void timer_schedule(tor_timer_t *t, const struct timeval *delay); Loading src/common/util.h +0 −1 Original line number Diff line number Diff line Loading @@ -154,7 +154,6 @@ int n_bits_set_u8(uint8_t v); int64_t clamp_double_to_int64(double number); void simplify_fraction64(uint64_t *numer, uint64_t *denom); /* Compute the CEIL of <b>a</b> divided by <b>b</b>, for nonnegative <b>a</b> * and positive <b>b</b>. Works on integer types only. Not defined if a+b can * overflow. */ Loading src/or/control.c +2 −1 Original line number Diff line number Diff line Loading @@ -1865,7 +1865,8 @@ getinfo_helper_dir(control_connection_t *control_conn, const routerinfo_t *ri = NULL; /* XXX Setting 'warn_if_unnamed' here is a bit silly -- the * warning goes to the user, not to the controller. */ const node_t *node = node_get_by_nickname(question+strlen("desc/name/"), 1); const node_t *node = node_get_by_nickname(question+strlen("desc/name/"), 1); if (node) ri = node->ri; if (ri) { Loading Loading
src/common/compat.c +0 −1 Original line number Diff line number Diff line Loading @@ -2824,7 +2824,6 @@ compute_num_cpus(void) return num_cpus; } #if !defined(_WIN32) /** Defined iff we need to add locks when defining fake versions of reentrant * versions of time-related functions. */ Loading
src/common/compat_time.c +1 −0 Original line number Diff line number Diff line Loading @@ -626,3 +626,4 @@ monotime_coarse_absolute_msec(void) return monotime_coarse_absolute_nsec() / ONE_MILLION; } #endif
src/common/timers.h +2 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,8 @@ struct monotime_t; typedef struct timeout tor_timer_t; typedef void (*timer_cb_fn_t)(tor_timer_t *, void *, const struct monotime_t *); typedef void (*timer_cb_fn_t)(tor_timer_t *, void *, const struct monotime_t *); tor_timer_t *timer_new(timer_cb_fn_t cb, void *arg); void timer_set_cb(tor_timer_t *t, timer_cb_fn_t cb, void *arg); void timer_schedule(tor_timer_t *t, const struct timeval *delay); Loading
src/common/util.h +0 −1 Original line number Diff line number Diff line Loading @@ -154,7 +154,6 @@ int n_bits_set_u8(uint8_t v); int64_t clamp_double_to_int64(double number); void simplify_fraction64(uint64_t *numer, uint64_t *denom); /* Compute the CEIL of <b>a</b> divided by <b>b</b>, for nonnegative <b>a</b> * and positive <b>b</b>. Works on integer types only. Not defined if a+b can * overflow. */ Loading
src/or/control.c +2 −1 Original line number Diff line number Diff line Loading @@ -1865,7 +1865,8 @@ getinfo_helper_dir(control_connection_t *control_conn, const routerinfo_t *ri = NULL; /* XXX Setting 'warn_if_unnamed' here is a bit silly -- the * warning goes to the user, not to the controller. */ const node_t *node = node_get_by_nickname(question+strlen("desc/name/"), 1); const node_t *node = node_get_by_nickname(question+strlen("desc/name/"), 1); if (node) ri = node->ri; if (ri) { Loading