Mercurial > ecos
changeset 2519:997f0b155d30
Eliminate compiler warning. Ignore the enaddr argument to start().
| author | bartv |
|---|---|
| date | Wed, 13 Aug 2008 21:46:23 +0000 |
| parents | 8cdbe50e1a0e |
| children | 901d69d75fc1 |
| files | packages/devs/eth/synth/ecosynth/current/ChangeLog packages/devs/eth/synth/ecosynth/current/host/rawether.c packages/devs/eth/synth/ecosynth/current/src/syntheth.c |
| diffstat | 3 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/devs/eth/synth/ecosynth/current/ChangeLog +++ b/packages/devs/eth/synth/ecosynth/current/ChangeLog @@ -1,3 +1,8 @@ +2008-08-13 Bart Veer <bartv@ecoscentric.com> + + * host/rawether.c: eliminate compiler warning. + * src/syntheth.c (synth_eth_start): ignore the enaddr argument. + 2005-07-22 Andrew Lunn <andrew.lunn@ascom.ch> * src/syntheth.c (synth_eth_init): Cast to keep the compiler
--- a/packages/devs/eth/synth/ecosynth/current/host/rawether.c +++ b/packages/devs/eth/synth/ecosynth/current/host/rawether.c @@ -111,7 +111,7 @@ static void (*multicast_fn)(int); // ---------------------------------------------------------------------------- // A utility buffer for messages. #define MSG_SIZE 256 -static unsigned char msg[MSG_SIZE]; +static char msg[MSG_SIZE]; // Report an error to ecosynth during initialization. This means a // single byte 0, followed by a string.
--- a/packages/devs/eth/synth/ecosynth/current/src/syntheth.c +++ b/packages/devs/eth/synth/ecosynth/current/src/syntheth.c @@ -394,9 +394,6 @@ synth_eth_start(struct eth_drv_sc* sc, u (int*)0, (void*) 0, (int*) 0, 0); } eth->up = 1; - if (enaddr != (unsigned char*)0) { - memcpy(enaddr, eth->MAC, 6); - } } static void
