mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
rpc: ansify
Reported by: clang 15 Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
39e8c2a29a
commit
71948c15ba
|
@ -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;
|
||||
|
||||
|
|
|
@ -135,10 +135,8 @@ _svcauth_unix(struct svc_req *rqst, struct rpc_msg *msg)
|
|||
* 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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue