diff --git a/platform/netsim/ether.c b/platform/netsim/ether.c index d07c95c91..3f6bafa01 100644 --- a/platform/netsim/ether.c +++ b/platform/netsim/ether.c @@ -30,7 +30,7 @@ * * Author: Adam Dunkels * - * $Id: ether.c,v 1.8 2007/03/31 18:47:27 adamdunkels Exp $ + * $Id: ether.c,v 1.9 2007/11/14 11:17:30 nvt-se Exp $ */ /** * \file @@ -224,10 +224,8 @@ ether_client_init(int port) int ether_client_poll(void) { - int ret, len; fd_set fdset; struct timeval tv; - struct ether_hdr *hdr = (struct ether_hdr *)rxbuffer; FD_ZERO(&fdset); FD_SET(sc, &fdset); @@ -530,7 +528,8 @@ void ether_set_leds(int leds) { struct ether_hdr hdr; - + + memset(&hdr, 0, sizeof (hdr)); hdr.srcx = node.x; hdr.srcy = node.y; hdr.type = PTYPE_LEDS;