implicit declaration warnings
Pekka Savola
pekkas at netcore.fi
Thu Dec 28 18:12:32 EST 2000
On Thu, 28 Dec 2000, Kevin Steves wrote:
> On Wed, 27 Dec 2000, Pekka Savola wrote:
> : auth-rhosts.c:110: warning: implicit declaration of function `innetgr'
>
> is there a standard place for the proto for innetgr()? openbsd has
> <netgroup.h>; linux has <netdb.h>; HP-UX doesn't define a prototype at
> all (i'll submit a defect).
>
> btw, unless i'm missing something, i think we want this:
Doesn't help.
However, 'grep -i -r innetgr /usr/include/*' on FreeBSD shows nothing.
Some other declarations, like getnetgrent are missing too. I take it the
system just has incomplete headers or something (innetgr is in netdb.h on
Linux).
> --- ../../openssh-2.3.0p1/includes.h Wed Oct 18 02:02:25 2000
> +++ includes.h Thu Dec 28 03:55:37 2000
> @@ -32,7 +32,6 @@
> #include <netinet/tcp.h>
> #endif
> #include <arpa/inet.h>
> -#include <netdb.h>
>
> #include <stdio.h>
> #include <ctype.h>
>
--
Pekka Savola "Tell me of difficulties surmounted,
Netcore Oy not those you stumble over and fall"
Systems. Networks. Security. -- Robert Jordan: A Crown of Swords
More information about the openssh-unix-dev
mailing list