]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix a pointer-to-int cast error
authorEvan Hunt <each@isc.org>
Tue, 17 Mar 2020 18:18:36 +0000 (11:18 -0700)
committerEvan Hunt <each@isc.org>
Tue, 17 Mar 2020 20:16:07 +0000 (13:16 -0700)
(cherry picked from commit 6b766460375e1069bd8510bf6ea77597e421641e)

lib/isc/tests/timer_test.c

index c53c4ca8325ed3e3013e6e34c4cd18f183e6958b..af753849e774ae8055cb12143af6865dd3b8b63e 100644 (file)
@@ -13,6 +13,7 @@
 
 #if HAVE_CMOCKA
 
+#include <inttypes.h>
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>
@@ -165,7 +166,7 @@ ticktock(isc_task_t *task, isc_event_t *event) {
        }
 
        expected_event_type = ISC_TIMEREVENT_LIFE;
-       if ((isc_timertype_t) event->ev_arg == isc_timertype_ticker) {
+       if ((uintptr_t)event->ev_arg == isc_timertype_ticker) {
                expected_event_type = ISC_TIMEREVENT_TICK;
        }