Removed unused variables.

Initialize header.
This commit is contained in:
nvt-se 2007-11-14 11:17:30 +00:00
parent f1271464fd
commit 33e565d20a

View file

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $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);
@ -531,6 +529,7 @@ 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;