From b1ae2896a0df7e03f5a0519e1ef929a00070f084 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 24 Jun 2024 21:56:59 -0400 Subject: [PATCH] openbsd_network: Add cast to silence a warning. --- src/libs/compat/openbsd_network/compat/machine/bus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/compat/openbsd_network/compat/machine/bus.h b/src/libs/compat/openbsd_network/compat/machine/bus.h index e37a3e86c0..c6a26a642e 100644 --- a/src/libs/compat/openbsd_network/compat/machine/bus.h +++ b/src/libs/compat/openbsd_network/compat/machine/bus.h @@ -145,7 +145,7 @@ static void bus_dmamem_free_obsd(bus_dma_tag_t tag, bus_dma_segment_t* segs, int nsegs) { for (int i = 0; i < nsegs; i++) - bus_dmamem_free_tagless(segs[i].ds_addr, segs[i].ds_len); + bus_dmamem_free_tagless((void*)segs[i].ds_addr, segs[i].ds_len); } #define bus_dmamem_free bus_dmamem_free_obsd