diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-03-13 05:46:26 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-03-13 05:46:26 +0000 |
commit | b39582afd3c1b4ce1d291e5a3fcc625176372d14 (patch) | |
tree | 88fb5824e69bf2704b727fb30d312d295fb4d3f9 /sys | |
parent | b4db84c32859676c765658387af9403d0e34ed53 (diff) | |
download | FreeBSD-src-b39582afd3c1b4ce1d291e5a3fcc625176372d14.zip FreeBSD-src-b39582afd3c1b4ce1d291e5a3fcc625176372d14.tar.gz |
Constify iso88025_broadcastaddr to make it clear no explicit
synchronization is required.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_iso88025subr.c | 6 |
1 files 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 <netipx/ipx_if.h> #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; |