svn commit: r215437 - head/sys/boot/ofw/libofw

Andreas Tobler andreast at FreeBSD.org
Wed Nov 17 19:31:49 UTC 2010


Author: andreast
Date: Wed Nov 17 19:31:48 2010
New Revision: 215437
URL: http://svn.freebsd.org/changeset/base/215437

Log:
  Move the declaration of the eh struct (used only when debugging is enabled)
  from ofwn_put into the debug section.
  
  Approved by:	nwhitehorn (mentor)

Modified:
  head/sys/boot/ofw/libofw/ofw_net.c

Modified: head/sys/boot/ofw/libofw/ofw_net.c
==============================================================================
--- head/sys/boot/ofw/libofw/ofw_net.c	Wed Nov 17 19:28:48 2010	(r215436)
+++ head/sys/boot/ofw/libofw/ofw_net.c	Wed Nov 17 19:31:48 2010	(r215437)
@@ -90,11 +90,11 @@ ofwn_probe(struct netif *nif, void *mach
 static int
 ofwn_put(struct iodesc *desc, void *pkt, size_t len)
 {
-	struct ether_header	*eh;
 	size_t			sendlen;
 	ssize_t			rv;
 
 #if defined(NETIF_DEBUG)
+	struct ether_header	*eh;
 	printf("netif_put: desc=0x%x pkt=0x%x len=%d\n", desc, pkt, len);
 	eh = pkt;
 	printf("dst: %s ", ether_sprintf(eh->ether_dhost));


More information about the svn-src-head mailing list