summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreast <andreast@FreeBSD.org>2010-11-17 19:31:48 +0000
committerandreast <andreast@FreeBSD.org>2010-11-17 19:31:48 +0000
commit93d6d79cff82bb8f55ff476f8d69ee082713472b (patch)
tree6463c9c9c7da40daee69ec5dbbe2ad14f2e84587
parente7675da8d7a7ffb411fc9b1fbdd398e5ee268e8c (diff)
downloadFreeBSD-src-93d6d79cff82bb8f55ff476f8d69ee082713472b.zip
FreeBSD-src-93d6d79cff82bb8f55ff476f8d69ee082713472b.tar.gz
Move the declaration of the eh struct (used only when debugging is enabled)
from ofwn_put into the debug section. Approved by: nwhitehorn (mentor)
-rw-r--r--sys/boot/ofw/libofw/ofw_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ofw/libofw/ofw_net.c b/sys/boot/ofw/libofw/ofw_net.c
index 830fcda..36600ef 100644
--- a/sys/boot/ofw/libofw/ofw_net.c
+++ b/sys/boot/ofw/libofw/ofw_net.c
@@ -90,11 +90,11 @@ ofwn_probe(struct netif *nif, void *machdep_hint)
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));
OpenPOWER on IntegriCloud