git: da9441d11aa6 - stable/13 - rpc: ansify

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 09 Apr 2023 21:35:48 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=da9441d11aa6f322d56d3506396088afddcf6772

commit da9441d11aa6f322d56d3506396088afddcf6772
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-02-13 05:39:10 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-04-09 15:48:06 +0000

    rpc: ansify
    
    Reported by:    clang 15
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit 71948c15ba9e6db536e7a26c65f2f22ee03f1630)
---
 sys/rpc/rpc_generic.c   | 9 +++------
 sys/rpc/svc_auth_unix.c | 6 ++----
 sys/rpc/svc_dg.c        | 5 +----
 3 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/sys/rpc/rpc_generic.c b/sys/rpc/rpc_generic.c
index 1a02085efe47..6d92367f4d60 100644
--- a/sys/rpc/rpc_generic.c
+++ b/sys/rpc/rpc_generic.c
@@ -146,8 +146,7 @@ __rpc_get_t_size(int af, int proto, int size)
  * Find the appropriate address buffer size
  */
 u_int
-__rpc_get_a_size(af)
-	int af;
+__rpc_get_a_size(int af)
 {
 	switch (af) {
 	case AF_INET:
@@ -567,8 +566,7 @@ __rpc_getconfip(const char *nettype)
  * unset, i.e. iterate over all visible entries in netconfig.
  */
 void *
-__rpc_setconf(nettype)
-	const char *nettype;
+__rpc_setconf(const char *nettype)
 {
 	struct handle *handle;
 
@@ -688,8 +686,7 @@ __rpc_getconf(void *vhandle)
 }
 
 void
-__rpc_endconf(vhandle)
-	void * vhandle;
+__rpc_endconf(void *vhandle)
 {
 	struct handle *handle;
 
diff --git a/sys/rpc/svc_auth_unix.c b/sys/rpc/svc_auth_unix.c
index de46bf438f0e..441f70e4a8af 100644
--- a/sys/rpc/svc_auth_unix.c
+++ b/sys/rpc/svc_auth_unix.c
@@ -135,10 +135,8 @@ done:
  * Looks up longhand in a cache.
  */
 /*ARGSUSED*/
-enum auth_stat 
-_svcauth_short(rqst, msg)
-	struct svc_req *rqst;
-	struct rpc_msg *msg;
+enum auth_stat
+_svcauth_short(struct svc_req *rqst, struct rpc_msg *msg)
 {
 	return (AUTH_REJECTEDCRED);
 }
diff --git a/sys/rpc/svc_dg.c b/sys/rpc/svc_dg.c
index db1928655618..36724ed07b98 100644
--- a/sys/rpc/svc_dg.c
+++ b/sys/rpc/svc_dg.c
@@ -288,10 +288,7 @@ svc_dg_destroy(SVCXPRT *xprt)
 
 static bool_t
 /*ARGSUSED*/
-svc_dg_control(xprt, rq, in)
-	SVCXPRT *xprt;
-	const u_int	rq;
-	void		*in;
+svc_dg_control(SVCXPRT *xprt, const u_int rq, void *in)
 {
 
 	return (FALSE);