Subject: lib/6064: wrong pmap_set(3) prototype
To: None <gnats-bugs@gnats.netbsd.org>
From: Soren S. Jorvang <soren@t.dk>
List: netbsd-bugs
Date: 08/29/1998 00:35:34
>Number:         6064
>Category:       lib
>Synopsis:       wrong pmap_set(3) prototype
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 28 13:35:00 1998
>Last-Modified:
>Originator:     Soren S. Jorvang
>Organization:
Soren
>Release:        NetBSD-current 19980828
>Environment:
System: NetBSD 1.3G


>Description:
pmap_set is not correctly prototyped.


>How-To-Repeat:


>Fix:
--- src/lib/libc/rpc/pmap_clnt.c.orig	Fri Aug 28 23:57:15 1998
+++ src/lib/libc/rpc/pmap_clnt.c	Fri Aug 28 23:57:23 1998
@@ -70,7 +70,7 @@
 pmap_set(program, version, protocol, port)
 	u_long program;
 	u_long version;
-	int protocol;
+	u_long protocol;
 	u_short port;
 {
 	struct sockaddr_in myaddress;
--- src/include/rpc/pmap_clnt.h.orig	Sat Aug 29 00:11:07 1998
+++ src/include/rpc/pmap_clnt.h	Sat Aug 29 00:11:24 1998
@@ -66,7 +66,7 @@
 #include <sys/cdefs.h>
 
 __BEGIN_DECLS
-extern bool_t		pmap_set	__P((u_long, u_long, int, int));
+extern bool_t		pmap_set	__P((u_long, u_long, u_long, u_short));
 extern bool_t		pmap_unset	__P((u_long, u_long));
 extern struct pmaplist	*pmap_getmaps	__P((struct sockaddr_in *));
 extern enum clnt_stat	pmap_rmtcall	__P((struct sockaddr_in *,
>Audit-Trail:
>Unformatted: