Subject: lib/4009: arg 1 of __getnetbyaddr is declared inconsistently
To: None <gnats-bugs@gnats.netbsd.org>
From: Krister Walfridsson <cato@ulysses.df.lth.se>
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
>Last-Modified:
>Originator:     Krister Walfridsson
>Organization:
	
>Release:        NetBSD-current Aug 15 1997
>Environment:
	
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


>Description:
__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.

>How-To-Repeat:
	
>Fix:
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 @@
 #endif
 
 /* 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

>Audit-Trail:
>Unformatted: