[PATCH] Fix rpcb_getaddr() definition

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jun 9 09:01:47 UTC 2016


Fix the rpcb_getaddr() definition to match its declaration.  It matters
for systems with int != int32_t also known as bool_t.
---
 lib/libc/rpc/rpcb_clnt.c | 2 +-
 sys/rpc/rpcb_clnt.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/libc/rpc/rpcb_clnt.c b/lib/libc/rpc/rpcb_clnt.c
index 02206a9..f9d89c1 100644
--- a/lib/libc/rpc/rpcb_clnt.c
+++ b/lib/libc/rpc/rpcb_clnt.c
@@ -1010,7 +1010,7 @@ done:
  *
  * Assuming that the address is all properly allocated
  */
-int
+bool_t
 rpcb_getaddr(rpcprog_t program, rpcvers_t version, const struct netconfig *nconf,
     struct netbuf *address, const char *host)
 {
diff --git a/sys/rpc/rpcb_clnt.c b/sys/rpc/rpcb_clnt.c
index a68793e..f3781f6 100644
--- a/sys/rpc/rpcb_clnt.c
+++ b/sys/rpc/rpcb_clnt.c
@@ -1051,7 +1051,7 @@ done:
  *
  * Assuming that the address is all properly allocated
  */
-int
+bool_t
 rpcb_getaddr(program, version, nconf, address, host)
 	rpcprog_t program;
 	rpcvers_t version;
-- 
1.8.4.5



More information about the freebsd-hackers mailing list