diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-11-16 17:12:56 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-11-16 17:12:56 +0000 |
commit | 561f368829863ce5b84396188c48952e11b7e9b9 (patch) | |
tree | a5f3fe37c7925e98d352da943d2ca865f8fd3018 /sys/dev | |
parent | e8d90b485eae7d40022029d9dcd5e75bc0747095 (diff) |
Fix compile error on big-endian machines caused by recent multicast commit.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/bwfm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/bwfm.c b/sys/dev/ic/bwfm.c index c13fd0ab89c..fc5899130ff 100644 --- a/sys/dev/ic/bwfm.c +++ b/sys/dev/ic/bwfm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwfm.c,v 1.76 2020/11/16 14:46:00 patrick Exp $ */ +/* $OpenBSD: bwfm.c,v 1.77 2020/11/16 17:12:55 patrick Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se> @@ -553,7 +553,7 @@ bwfm_iff(struct bwfm_softc *sc) mcastlen = sizeof(uint32_t) + ac->ac_multicnt * ETHER_ADDR_LEN; mcast = malloc(mcastlen, M_TEMP, M_WAITOK); - htolem32(mcast, ac->ac_multicnt); + htolem32((uint32_t *)mcast, ac->ac_multicnt); ifp->if_flags &= ~IFF_ALLMULTI; if (ifp->if_flags & IFF_PROMISC || ac->ac_multirangecnt > 0) { |