svn commit: r275197 - head/sys/net

Alexander V. Chernikov melifaro at FreeBSD.org
Thu Nov 27 23:10:04 UTC 2014


Author: melifaro
Date: Thu Nov 27 23:10:03 2014
New Revision: 275197
URL: https://svnweb.freebsd.org/changeset/base/275197

Log:
  Fix build broken by r275195.

Modified:
  head/sys/net/if_ethersubr.c

Modified: head/sys/net/if_ethersubr.c
==============================================================================
--- head/sys/net/if_ethersubr.c	Thu Nov 27 23:06:25 2014	(r275196)
+++ head/sys/net/if_ethersubr.c	Thu Nov 27 23:10:03 2014	(r275197)
@@ -234,12 +234,14 @@ ether_output(struct ifnet *ifp, struct m
 #endif
 	case pseudo_AF_HDRCMPLT:
 	    {
+		const struct ether_header *eh;
+
 		hdrcmplt = 1;
 		/* FALLTHROUGH */
 
 	case AF_UNSPEC:
 		loop_copy = 0; /* if this is for us, don't do it */
-		eh = (struct ether_header *)dst->sa_data;
+		eh = (const struct ether_header *)dst->sa_data;
 		(void)memcpy(edst, eh->ether_dhost, sizeof (edst));
 		type = eh->ether_type;
 		break;


More information about the svn-src-head mailing list