From owner-freebsd-hackers@freebsd.org Thu Jun 9 09:01:47 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1E8DAAEEEAD for ; Thu, 9 Jun 2016 09:01:47 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D32DE16D8 for ; Thu, 9 Jun 2016 09:01:46 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from [88.198.220.132] (helo=sslproxy03.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1bAvZq-0001jU-U2 for freebsd-hackers@freebsd.org; Thu, 09 Jun 2016 10:44:34 +0200 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy03.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bAvZq-0002T7-AU for freebsd-hackers@freebsd.org; Thu, 09 Jun 2016 10:44:34 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 945012A1809 for ; Thu, 9 Jun 2016 10:44:37 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Luc1Xi8I3ehp; Thu, 9 Jun 2016 10:44:37 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 4532A2A096E; Thu, 9 Jun 2016 10:44:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Zxl6t8s0xlqI; Thu, 9 Jun 2016 10:44:37 +0200 (CEST) Received: from huber-linux.eb.localhost (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTP id 1C1F92A01AE; Thu, 9 Jun 2016 10:44:37 +0200 (CEST) From: Sebastian Huber To: freebsd-hackers@freebsd.org Cc: Sebastian Huber Subject: [PATCH] Fix rpcb_getaddr() definition Date: Thu, 9 Jun 2016 10:44:31 +0200 Message-Id: <1465461871-26349-1-git-send-email-sebastian.huber@embedded-brains.de> X-Mailer: git-send-email 1.8.4.5 X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.99.2/21697/Thu Jun 9 07:41:01 2016) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2016 09:01:47 -0000 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