pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libnet problems



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



Home | Main Index | Thread Index | Old Index