git: 71948c15ba9e - main - rpc: ansify
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Feb 2023 05:39:33 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=71948c15ba9e6db536e7a26c65f2f22ee03f1630
commit 71948c15ba9e6db536e7a26c65f2f22ee03f1630
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-02-13 05:39:10 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-02-13 05:39:10 +0000
rpc: ansify
Reported by: clang 15
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
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 0e1797272a03..43caffea6dd2 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 bf3cbd2a6137..dcab970b63fa 100644
--- a/sys/rpc/svc_dg.c
+++ b/sys/rpc/svc_dg.c
@@ -292,10 +292,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);