# HG changeset patch # User bartv # Date 1218663983 0 # Node ID 997f0b155d3054804b681401f7032a242db4fe64 # Parent 8cdbe50e1a0ec9d68e78687cec15fe0f5b1a39ce Eliminate compiler warning. Ignore the enaddr argument to start(). diff --git a/packages/devs/eth/synth/ecosynth/current/ChangeLog b/packages/devs/eth/synth/ecosynth/current/ChangeLog --- 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 + + * host/rawether.c: eliminate compiler warning. + * src/syntheth.c (synth_eth_start): ignore the enaddr argument. + 2005-07-22 Andrew Lunn * src/syntheth.c (synth_eth_init): Cast to keep the compiler diff --git a/packages/devs/eth/synth/ecosynth/current/host/rawether.c b/packages/devs/eth/synth/ecosynth/current/host/rawether.c --- 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. diff --git a/packages/devs/eth/synth/ecosynth/current/src/syntheth.c b/packages/devs/eth/synth/ecosynth/current/src/syntheth.c --- 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