From b39582afd3c1b4ce1d291e5a3fcc625176372d14 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 13 Mar 2004 05:46:26 +0000 Subject: Constify iso88025_broadcastaddr to make it clear no explicit synchronization is required. --- sys/net/if_iso88025subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c index a34c6bf..456307a 100644 --- a/sys/net/if_iso88025subr.c +++ b/sys/net/if_iso88025subr.c @@ -79,7 +79,7 @@ #include #endif -static u_char iso88025_broadcastaddr[ISO88025_ADDR_LEN] = +static const u_char iso88025_broadcastaddr[ISO88025_ADDR_LEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; static int iso88025_resolvemulti (struct ifnet *, struct sockaddr **, @@ -498,8 +498,8 @@ iso88025_input(ifp, m) * Set mbuf flags for bcast/mcast. */ if (th->iso88025_dhost[0] & 1) { - if (bcmp((caddr_t)iso88025_broadcastaddr, - (caddr_t)th->iso88025_dhost, ISO88025_ADDR_LEN) == 0) + if (bcmp(iso88025_broadcastaddr, th->iso88025_dhost, + ISO88025_ADDR_LEN) == 0) m->m_flags |= M_BCAST; else m->m_flags |= M_MCAST; -- cgit v1.1