aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2023-02-13 05:39:10 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2023-02-13 05:39:10 +0000
commit71948c15ba9e6db536e7a26c65f2f22ee03f1630 (patch)
treee0ff569d99f45f7cc78f3bdfb98ab97daccc91cf
parent39e8c2a29a860bdb69ffcfbc06de4d4ad103b458 (diff)
downloadsrc-71948c15ba9e6db536e7a26c65f2f22ee03f1630.tar.gz
src-71948c15ba9e6db536e7a26c65f2f22ee03f1630.zip
rpc: ansify
Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r--sys/rpc/rpc_generic.c9
-rw-r--r--sys/rpc/svc_auth_unix.c6
-rw-r--r--sys/rpc/svc_dg.c5
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);