diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-11-17 12:27:25 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-12-08 14:47:19 -0500 |
commit | c92ac9f5cbb4440b5f87c7e0dd6bec5147d72405 (patch) | |
tree | 2cd04944fc6132f5abadddbe6d225801385abcac /src/common/timers.h | |
parent | 2f086888b14be3998421b29bfc81d037b8073202 (diff) | |
download | tor-c92ac9f5cbb4440b5f87c7e0dd6bec5147d72405.tar.gz tor-c92ac9f5cbb4440b5f87c7e0dd6bec5147d72405.zip |
Convert the rest of src/common's headers to use FREE_AND_NULL
Diffstat (limited to 'src/common/timers.h')
-rw-r--r-- | src/common/timers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/timers.h b/src/common/timers.h index d4d4fb00a9..6c9594d31b 100644 --- a/src/common/timers.h +++ b/src/common/timers.h @@ -17,7 +17,8 @@ void timer_get_cb(const tor_timer_t *t, timer_cb_fn_t *cb_out, void **arg_out); void timer_schedule(tor_timer_t *t, const struct timeval *delay); void timer_disable(tor_timer_t *t); -void timer_free(tor_timer_t *t); +void timer_free_(tor_timer_t *t); +#define timer_free(t) FREE_AND_NULL(timer, (t)) void timers_initialize(void); void timers_shutdown(void); |