diff '--color=auto' -ur a/librpc/svc.c b/librpc/svc.c --- a/librpc/svc.c 2012-04-19 19:40:08.000000000 +0200 +++ b/librpc/svc.c 2025-05-31 02:30:07.186874175 +0200 @@ -73,7 +73,7 @@ struct svc_callout *sc_next; unsigned long sc_prog; unsigned long sc_vers; - void (*sc_dispatch) (); + __dispatch_fn_t sc_dispatch; } *svc_head; static struct svc_callout *svc_find(unsigned long prog, unsigned long vers, struct svc_callout **prev); @@ -139,7 +139,7 @@ SVCXPRT *xprt; unsigned long prog; unsigned long vers; -void (*dispatch) (); +__dispatch_fn_t dispatch; rpcprot_t protocol; { struct svc_callout *prev; diff '--color=auto' -ur a/librpc/svc_auth.c b/librpc/svc_auth.c --- a/librpc/svc_auth.c 2003-08-19 21:34:18.000000000 +0200 +++ b/librpc/svc_auth.c 2025-05-31 02:32:12.422500534 +0200 @@ -56,12 +56,14 @@ * */ -enum auth_stat _svcauth_null(void); /* no authentication */ -enum auth_stat _svcauth_unix(); /* unix style (uid, gids) */ -enum auth_stat _svcauth_short(); /* short hand unix style */ +enum auth_stat _svcauth_null(struct svc_req*, struct rpc_msg*); /* no authentication */ +enum auth_stat _svcauth_unix(struct svc_req*, struct rpc_msg*); /* unix style (uid, gids) */ +enum auth_stat _svcauth_short(struct svc_req*, struct rpc_msg*); /* short hand unix style */ + +typedef enum auth_stat (*__auth_stat_fn_t) (struct svc_req*, struct rpc_msg*); static struct { - enum auth_stat (*authenticator) (); + __auth_stat_fn_t authenticator; } svcauthsw[] = { { _svcauth_null }, /* AUTH_NULL */ { _svcauth_unix }, /* AUTH_UNIX */ @@ -106,9 +108,9 @@ return (AUTH_REJECTEDCRED); } -enum auth_stat _svcauth_null( void/*rqst, msg */ ) - /*struct svc_req *rqst; - struct rpc_msg *msg; */ +enum auth_stat _svcauth_null( rqst, msg ) + struct svc_req *rqst; + struct rpc_msg *msg; { return (AUTH_OK); diff '--color=auto' -ur a/librpc/svc_simple.c b/librpc/svc_simple.c --- a/librpc/svc_simple.c 2016-03-29 17:56:33.000000000 +0200 +++ b/librpc/svc_simple.c 2025-05-31 02:36:01.221510124 +0200 @@ -48,7 +48,7 @@ #include static struct proglst { - char *(*p_progname) (); + char *(*p_progname) (char *xdrbuf); int p_prognum; int p_procnum; xdrproc_t p_inproc, p_outproc; @@ -58,7 +58,7 @@ static SVCXPRT *transp; struct proglst *pl; -static int registerrpc(int prognum, int versnum, int procnum, char *(*progname)(), xdrproc_t inproc, xdrproc_t outproc) +static int registerrpc(int prognum, int versnum, int procnum, char *(*progname)(char*), xdrproc_t inproc, xdrproc_t outproc) { if (procnum == NULLPROC) {