Subject: Re: libnet problems
To: Louis Guillaume <lguillaume@berklee.edu>
From: Roland Illig <rillig@NetBSD.org>
List: pkgsrc-users
Date: 02/10/2007 00:59:17
Louis Guillaume wrote:
> In file included from
> /usr/pkgobj/local/heartbeat/work/.buildlink/include/libnet.h:124,
>                  from send_arp.c:37:
> include/libnet/libnet-functions.h:1840:
> warning: function declaration isn't a prototype

The offending lines read:

libnet_t *
libnet_cq_head();

In C, this declares a function that may take an arbitrary number of 
arguments (for historical reasons). In C++, it declares a function that 
takes no arguments at all.

To avoid these differences, one should always write:

libnet_t *
libnet_cq_head(void);

I've fixed that in devel/libnet11/patches/patch-aa.

Roland