-STABLE build appears broken after ipfilter 3.4.35 MFC

Rob stopspam at users.sourceforge.net
Sun Jul 4 16:29:11 PDT 2004


Kent Stewart wrote:
> On Sunday 04 July 2004 09:55 am, Ruslan Ermilov wrote:
> 
>>On Sun, Jul 04, 2004 at 07:07:47AM -0700, David Wolfskill wrote:
>>
>>>[I sent a copy of this information under separate cover to Darren
>>>Reed a little while ago.  dhw]
> 
> 
> Darren's 1741 UTC to ip_fil.h fix lets it build on my test system.

I cvsup'ed against cvsup.freebsd.org. The kernel build still fails:

[...]
/usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_fil.c: In function `send_ip':
/usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_fil.c:1325: void value not ignored as it ought to be
*** Error code 1

----

Reason for this seems:

In contrib/ipfilter/netinet/ip_fil.c:1325, there is

	if (fr_makefrip(hlen, ip, &frn) == 0)

and in contrib/ipfilter/netinet/ip_fil.h:633, it has

	extern  void	fr_makefrip __P((int, ip_t *, fr_info_t *));


A void-function cannot be tested against a return value!

Rob




More information about the freebsd-questions mailing list