summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-03-13 05:46:26 +0000
committerrwatson <rwatson@FreeBSD.org>2004-03-13 05:46:26 +0000
commitb39582afd3c1b4ce1d291e5a3fcc625176372d14 (patch)
tree88fb5824e69bf2704b727fb30d312d295fb4d3f9
parentb4db84c32859676c765658387af9403d0e34ed53 (diff)
downloadFreeBSD-src-b39582afd3c1b4ce1d291e5a3fcc625176372d14.zip
FreeBSD-src-b39582afd3c1b4ce1d291e5a3fcc625176372d14.tar.gz
Constify iso88025_broadcastaddr to make it clear no explicit
synchronization is required.
-rw-r--r--sys/net/if_iso88025subr.c6
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;
OpenPOWER on IntegriCloud