From 0fcc603a072fc5fb0121114e539ac557fbe1a7e5 Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Fri, 16 Jun 2023 08:23:14 +0000 Subject: [PATCH] ifconfig: fix armv6 build --- sbin/ifconfig/ifieee80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index 967385b2377d..d5a1dab4e064 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -3825,7 +3825,7 @@ scan_and_wait(if_ctx *ctx) perror("read(PF_ROUTE)"); break; } - rtm = (struct rt_msghdr *) buf; + rtm = (struct rt_msghdr *)(void *)buf; if (rtm->rtm_version != RTM_VERSION) break; ifan = (struct if_announcemsghdr *) rtm;