From 9d63d1bf304e0d4aeb1c13a826208dfe8bd89792 Mon Sep 17 00:00:00 2001 From: Michio Honda Date: Sat, 10 Apr 2021 23:56:21 +0100 Subject: [PATCH] Fix FreeBSD compile error --- sys/dev/netmap/netmap_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/netmap/netmap_generic.c b/sys/dev/netmap/netmap_generic.c index 87810f7c7..ec86c4dd7 100644 --- a/sys/dev/netmap/netmap_generic.c +++ b/sys/dev/netmap/netmap_generic.c @@ -989,7 +989,7 @@ generic_netmap_rxsync(struct netmap_kring *kring, int flags) do { struct netmap_slot *slot = ring->slot + nm_i; uint64_t nm_offset = nm_get_offset(kring, slot); - void *nmaddr = NMB(na, slot); + char *nmaddr = NMB(na, slot); if (nmaddr == NETMAP_BUF_BASE(na)) { /* Bad buffer */ m_freem(m);