This is the mail archive of the ecos-patches@sources.redhat.com 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]

Re: synth ethernet trivial change


Is this the correct fix?

I would of thought a cdl 

requires      CYGINT_ISO_ERRNO_CODES

is better so you do have the error codes in your configuration.

   Andrew

On Tue, Feb 11, 2003 at 12:58:36PM +0200, Jani Monoses wrote:
> 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:
> 


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