aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-24 21:28:43 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-27 19:21:14 +0000
commit11ac8a326d5f967e8f85e89984c00359f61f540c (patch)
tree35e615f547d3c67f041c0a9fec8cf40b51788651
parentc6d360ab6d54b72dd2717dc55ffa75599f38cf88 (diff)
downloadsrc-11ac8a326d5f967e8f85e89984c00359f61f540c.tar.gz
src-11ac8a326d5f967e8f85e89984c00359f61f540c.zip
Adjust local_rpcb() definition to avoid clang 15 warning
With clang 15, the following -Werror warning is produced: sys/rpc/rpcb_clnt.c:439:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] local_rpcb() ^ void This is because local_rpcb() is declared with a (void) argument list, but defined with an empty argument list. Make the definition match the declaration. MFC after: 3 days (cherry picked from commit e87d90a9dce22003d79ae895bac5ce2d0ca029fe)
-rw-r--r--sys/rpc/rpcb_clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/rpc/rpcb_clnt.c b/sys/rpc/rpcb_clnt.c
index 8a95999baaf4..b81ab66c9409 100644
--- a/sys/rpc/rpcb_clnt.c
+++ b/sys/rpc/rpcb_clnt.c
@@ -436,7 +436,7 @@ getclnthandle(host, nconf, targaddr)
* rpcbind. Returns NULL on error and free's everything.
*/
static CLIENT *
-local_rpcb()
+local_rpcb(void)
{
CLIENT *client;
struct socket *so;