mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-27 12:02:10 -05:00
fixed uninitialized variable; use the UNUSED() macro
This commit is contained in:
parent
e4e183af57
commit
2a3beab190
1 changed files with 4 additions and 2 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include <isc/result.h>
|
||||
#include <isc/timer.h>
|
||||
#include <isc/ratelimiter.h>
|
||||
#include <isc/util.h>
|
||||
|
||||
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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue