From 93d6d79cff82bb8f55ff476f8d69ee082713472b Mon Sep 17 00:00:00 2001 From: andreast Date: Wed, 17 Nov 2010 19:31:48 +0000 Subject: Move the declaration of the eh struct (used only when debugging is enabled) from ofwn_put into the debug section. Approved by: nwhitehorn (mentor) --- sys/boot/ofw/libofw/ofw_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.1