From 5a78f313fb1f7388ff6cf0bde1245e749d8d7a02 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sat, 13 Mar 2004 05:46:26 +0000 Subject: [PATCH] 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 a34c6bf38811..456307a0af72 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;