Move the declaration of the eh struct (used only when debugging is enabled)

from ofwn_put into the debug section.

Approved by:	nwhitehorn (mentor)
This commit is contained in:
andreast 2010-11-17 19:31:48 +00:00
parent e7675da8d7
commit 93d6d79cff

View File

@ -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));