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: IO/ETH: Fix NBPFILTER warnings


On Wed, 2003-07-23 at 12:02, Nick Garnett wrote:
 <snip>
> Index: src/net/eth_drv.c
> ===================================================================
> RCS file: /cvs/ecos/ecos/packages/io/eth/current/src/net/eth_drv.c,v
> retrieving revision 1.27
> diff -u -5 -r1.27 eth_drv.c
> --- src/net/eth_drv.c	17 Mar 2003 18:37:21 -0000	1.27
> +++ src/net/eth_drv.c	23 Jul 2003 18:00:59 -0000
> @@ -71,10 +71,14 @@
>  #include <netinet/in_var.h>
>  #include <netinet/ip.h>
>  #include <netinet/if_ether.h>
>  #endif
>  
=============================================================
> +#ifndef NBPFILTER
> +#define NBPFILTER 0
> +#endif
> +
>  #if NBPFILTER > 0
>  #include <net/bpf.h>
>  #include <net/bpfdesc.h>
>  #endif
>  
===============================================================

It seems to me that these lines could just be removed [safely]
since they also appear in the eth_drv.h file.
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


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