git: 0fcc603a072f - main - ifconfig: fix armv6 build

From: Alexander V. Chernikov <melifaro_at_FreeBSD.org>
Date: Fri, 16 Jun 2023 08:23:55 UTC
The branch main has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=0fcc603a072fc5fb0121114e539ac557fbe1a7e5

commit 0fcc603a072fc5fb0121114e539ac557fbe1a7e5
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2023-06-16 08:23:14 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-06-16 08:23:50 +0000

    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;