diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-24 21:28:43 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-07-27 19:17:23 +0000 |
commit | 4c941909462bf9b7b2b3a14a2d22072eebc08de2 (patch) | |
tree | 9c6dacefe8296db31e2b0d0af3c02836212a49c5 | |
parent | aad14bc54d92394fd648306705d52f8639bfafff (diff) | |
download | src-4c941909462bf9b7b2b3a14a2d22072eebc08de2.tar.gz src-4c941909462bf9b7b2b3a14a2d22072eebc08de2.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.c | 2 |
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; |