]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix undefined behaviour occurrences
authorAram Sargsyan <aram@isc.org>
Thu, 12 Oct 2023 14:10:43 +0000 (14:10 +0000)
committerAram Sargsyan <aram@isc.org>
Fri, 13 Oct 2023 11:25:53 +0000 (11:25 +0000)
The undefined behaviour was detected by LLVM 17. Fix the affected
functions definitions to match the expected function type.

(cherry picked from commit 20fdab866705864f2ca2831554b1ba38d87eb03e)

tests/isc/netmgr_test.c

index a20db6b424770baa75f64d801973528b1183da49..1bf959ac19c39f054ae21c0dc6ce8129d089129a 100644 (file)
@@ -394,7 +394,7 @@ noop_recv_cb(isc_nmhandle_t *handle, isc_result_t eresult, isc_region_t *region,
 }
 
 static unsigned int
-noop_accept_cb(isc_nmhandle_t *handle, unsigned int result, void *cbarg) {
+noop_accept_cb(isc_nmhandle_t *handle, isc_result_t result, void *cbarg) {
        UNUSED(handle);
        UNUSED(cbarg);