Re: libwrap bug?

2002-08-18 Thread David Malone
On Sun, Aug 18, 2002 at 12:55:27AM -0400, Yuri Victorovich wrote: Is it a bug that function sock_host is declared sock_host() in /usr/include/tcpd.h but defined as sock_host(struct request_info *) in /usr/src/contrib/tcp_wrappers/socket.c ? A fucntion which is declared with no arguments (eg

Re: libwrap bug?

2002-08-18 Thread Yuri Victorovich
David, A fucntion which is declared with no arguments (eg sock_host()) is assumed to be a function defined in the KR way. Argument number and types don't need to be known. To decalre a function which takes no arguments (and which has an ANSI style definition) you say function(void). So

Re: libwrap bug?

2002-08-18 Thread Mark Murray
Such KR way to declare functions sounds like an open invitation for bugs. Agreed. I've been considering adding ANSI prototypes to tcpd.h, so we get more useful warnings from it. I have a local ISOfication (and lint cleanup) of tcp_wrappers that I've been meaning to contribute back to the

Re: libwrap bug?

2002-08-18 Thread Yuri Victorovich
I've been considering adding ANSI prototypes to tcpd.h, so we get more useful warnings from it. I have a local ISOfication (and lint cleanup) of tcp_wrappers that I've been meaning to contribute back to the author. Wanna play? :-) Sure! Would appreciate if you send it to me ) Regards,

libwrap bug?

2002-08-17 Thread Yuri Victorovich
Is it a bug that function sock_host is declared sock_host() in /usr/include/tcpd.h but defined as sock_host(struct request_info *) in /usr/src/contrib/tcp_wrappers/socket.c ? Good question also why compiler passes this and doesn't issue even a warning when I call it with the argument. MySQL on