From 2a3beab1908159a5352968bb507df15a8cbba541 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Thu, 20 Apr 2000 21:42:12 +0000 Subject: [PATCH] fixed uninitialized variable; use the UNUSED() macro --- bin/tests/ratelimiter_test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/tests/ratelimiter_test.c b/bin/tests/ratelimiter_test.c index 0649c886b3..17508ca480 100644 --- a/bin/tests/ratelimiter_test.c +++ b/bin/tests/ratelimiter_test.c @@ -29,6 +29,7 @@ #include #include #include +#include isc_ratelimiter_t *rlim = NULL; @@ -62,8 +63,8 @@ main(int argc, char *argv[]) { isc_interval_t linterval; int i; - (void) argc; - (void) argv; + UNUSED(argc); + UNUSED(argv); isc_interval_set(&linterval, 1, 0); @@ -85,6 +86,7 @@ main(int argc, char *argv[]) { isc_interval_t uinterval; isc_interval_set(&uinterval, times[i] / 1000, (times[i] % 1000) * 1000000); + timers[i] = NULL; RUNTIME_CHECK(isc_timer_create(timermgr, isc_timertype_once, NULL, &uinterval,