This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
synth ethernet trivial change
- From: Jani Monoses <jani at iv dot ro>
- To: ecos-patches at sources dot redhat dot com
- Date: Tue, 11 Feb 2003 12:58:36 +0200
- Subject: synth ethernet trivial change
In order to compile lwIP for the synthetic target I needed to get rid of EINVAL
in eth_ioctl because that is not defined in my configuration.
Please commit, thanks
Jani.
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/synth/ecosynth/current/ChangeLog,v
retrieving revision 1.3
diff -u -r1.3 ChangeLog
--- ChangeLog 25 Sep 2002 19:53:54 -0000 1.3
+++ ChangeLog 11 Feb 2003 10:54:11 -0000
@@ -1,3 +1,9 @@
+2003-02-11 Jani Monoses <jani@iv.ro>
+
+ * src/syntheth.c:
+ Replace EINVAL with -1 in synt_eth_ioctl to work in configurations
+ not including the standard error headers.
+
2002-09-25 Bart Veer <bartv@ecoscentric.com>
* host/configure.in, host/rawether.c, doc/syntheth.sgml:
Index: src/syntheth.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/synth/ecosynth/current/src/syntheth.c,v
retrieving revision 1.1
diff -u -r1.1 syntheth.c
--- src/syntheth.c 15 Sep 2002 17:49:35 -0000 1.1
+++ src/syntheth.c 11 Feb 2003 10:54:14 -0000
@@ -347,7 +347,7 @@
synth_eth_ioctl(struct eth_drv_sc* sc, unsigned long key, void* data, int data_length)
{
synth_eth* eth = (synth_eth*)(sc->driver_private);
- int result = EINVAL;
+ int result = -1;
switch(key) {
case ETH_DRV_SET_MC_ALL: