Subject: lib/4009: arg 1 of __getnetbyaddr is declared inconsistently
To: None <>
From: Krister Walfridsson <>
List: netbsd-bugs
Date: 08/18/1997 22:19:34
>Number:         4009
>Category:       lib
>Synopsis:       arg 1 of __getnetbyaddr is declared inconsistently
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 18 13:20:05 1997
>Originator:     Krister Walfridsson
>Release:        NetBSD-current Aug 15 1997
System: NetBSD ulysses 1.2G NetBSD 1.2G (KWA) #0: Fri Aug 15 20:36:02 CEST 1997 cato@ulysses:/usr/src/sys/arch/sparc/compile/KWA sparc

__getnetbyaddr is defined in libc/net/getnetbyaddr.c and used in
libc/net/getnetnamadr.c, but they doesn't agree on the type of
the first argument.

diff -u getnetnamadr.c.bak getnetnamadr.c
--- getnetnamadr.c.bak  Fri Aug  1 13:13:40 1997
+++ getnetnamadr.c      Mon Aug 18 21:56:25 1997
@@ -78,7 +78,7 @@
 /* XXX private header! */
-struct netent *__getnetbyaddr __P((long net, int type));
+struct netent *__getnetbyaddr __P((unsigned long net, int type));
 struct netent *__getnetbyname __P((const char *name));
 #define BYADDR 0