This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

synthetic target ethernet driver update


This eliminates a build warning for the host-side code. The
target-side now ignores the enaddr argument to start() since it serves
no purpose.

Bart

2008-08-13  Bart Veer  <bartv@ecoscentric.com>

	* host/rawether.c: eliminate compiler warning.
	* src/syntheth.c (synth_eth_start): ignore the enaddr argument.

Index: host/rawether.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/synth/ecosynth/current/host/rawether.c,v
retrieving revision 1.4
diff -u -p -r1.4 rawether.c
--- host/rawether.c	16 Jul 2003 18:16:25 -0000	1.4
+++ host/rawether.c	13 Aug 2008 21:45:09 -0000
@@ -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.
Index: src/syntheth.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/synth/ecosynth/current/src/syntheth.c,v
retrieving revision 1.5
diff -u -p -r1.5 syntheth.c
--- src/syntheth.c	30 Jul 2005 11:50:06 -0000	1.5
+++ src/syntheth.c	13 Aug 2008 21:45:24 -0000
@@ -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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]