[PATCH] Fix rpcb_getaddr() definition

Kevin Lo kevlo at FreeBSD.org
Thu Jun 9 14:36:32 UTC 2016


On Thu, Jun 09, 2016 at 10:44:31AM +0200, Sebastian Huber wrote:
> 
> Fix the rpcb_getaddr() definition to match its declaration.  It matters
> for systems with int != int32_t also known as bool_t.

Committed as r301734, thanks.

> ---
>  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