change log for rtems (2011-10-20)

rtems-vc at rtems.org rtems-vc at rtems.org
Thu Oct 20 14:12:18 UTC 2011


 *ralf*:
2011-10-20	Ralf Corsépius <ralf.corsepius at rtems.org>

	* libnetworking/net/if_ethersubr.c (ether_output):
	Remove unused vars "hlen", "off".

M 1.2963  cpukit/ChangeLog
M   1.19  cpukit/libnetworking/net/if_ethersubr.c

diff -u rtems/cpukit/ChangeLog:1.2962 rtems/cpukit/ChangeLog:1.2963
--- rtems/cpukit/ChangeLog:1.2962	Thu Oct 20 06:58:53 2011
+++ rtems/cpukit/ChangeLog	Thu Oct 20 08:54:44 2011
@@ -1,5 +1,7 @@
 2011-10-20	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* libnetworking/net/if_ethersubr.c (ether_output): 
+	Remove unused vars "hlen", "off".
 	* score/include/rtems/score/rbtree.h (_RBTree_Container_of):
 	Use offsetof. Don't cast to size_t. Include <stddef.h>.
 	* libnetworking/libc/res_mkupdate.c (res_mkupdate):

diff -u rtems/cpukit/libnetworking/net/if_ethersubr.c:1.18 rtems/cpukit/libnetworking/net/if_ethersubr.c:1.19
--- rtems/cpukit/libnetworking/net/if_ethersubr.c:1.18	Sun Mar 28 00:50:28 2010
+++ rtems/cpukit/libnetworking/net/if_ethersubr.c	Thu Oct 20 08:54:45 2011
@@ -121,12 +121,11 @@
 	register struct rtentry *rt;
 	struct mbuf *mcopy = (struct mbuf *)0;
 	register struct ether_header *eh;
-	int off, len = m->m_pkthdr.len;
+	int len = m->m_pkthdr.len;
 	struct arpcom *ac = (struct arpcom *)ifp;
 #ifdef NETATALK
 	struct at_ifaddr *aa;
 #endif /* NETATALK */
-	int hlen;	/* link layer header length */
 
 	if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
 		senderr(ENETDOWN);
@@ -155,7 +154,6 @@
 			    rtems_bsdnet_seconds_since_boot() < rt->rt_rmx.rmx_expire)
 				senderr(rt == rt0 ? EHOSTDOWN : EHOSTUNREACH);
 	}
-	hlen = ETHER_HDR_LEN;
 	switch (dst->sa_family) {
 
 #ifdef INET
@@ -165,7 +163,6 @@
 		/* If broadcasting on a simplex interface, loopback a copy */
 		if ((m->m_flags & M_BCAST) && (ifp->if_flags & IFF_SIMPLEX))
 			mcopy = m_copy(m, 0, (int)M_COPYALL);
-		off = m->m_pkthdr.len - m->m_len;
 		type = htons(ETHERTYPE_IP);
 		break;
 #endif



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111020/aff9484b/attachment-0001.html>


More information about the vc mailing list