Add missing prototypes.

This commit is contained in:
Ralf Corsepius
2008-08-01 15:16:38 +00:00
parent 7013243f2b
commit b03af1c202
3 changed files with 52 additions and 55 deletions

View File

@@ -62,12 +62,12 @@ struct clnt_raw_private {
};
#define clntraw_private (rtems_rpc_task_variables->clnt_raw_private)
static enum clnt_stat clntraw_call();
static void clntraw_abort();
static void clntraw_geterr();
static bool_t clntraw_freeres();
static bool_t clntraw_control();
static void clntraw_destroy();
static enum clnt_stat clntraw_call(CLIENT *h, u_long proc, xdrproc_t xargs, caddr_t argsp, xdrproc_t xresults, caddr_t resultsp, struct timeval timeout);
static void clntraw_abort(void);
static void clntraw_geterr(CLIENT *h, struct rpc_err*);
static bool_t clntraw_freeres(CLIENT *, xdrproc_t, caddr_t);
static bool_t clntraw_control(CLIENT *, int, char *);
static void clntraw_destroy(CLIENT *);
static struct clnt_ops client_ops = {
clntraw_call,
@@ -78,8 +78,6 @@ static struct clnt_ops client_ops = {
clntraw_control
};
void svc_getreq();
/*
* Create a client handle for memory based rpc.
*/
@@ -202,7 +200,7 @@ call_again:
}
static void
clntraw_geterr()
clntraw_geterr(CLIENT *cl, struct rpc_err *err)
{
}
@@ -227,17 +225,17 @@ clntraw_freeres(
}
static void
clntraw_abort()
clntraw_abort(void)
{
}
static bool_t
clntraw_control()
clntraw_control(CLIENT *cl, int request, char *info)
{
return (FALSE);
}
static void
clntraw_destroy()
clntraw_destroy(CLIENT *cl)
{
}

View File

@@ -54,12 +54,12 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/clnt_udp.c,v 1.15 2000/01/27 23
/*
* UDP bases client side rpc operations
*/
static enum clnt_stat clntudp_call();
static void clntudp_abort();
static void clntudp_geterr();
static bool_t clntudp_freeres();
static bool_t clntudp_control();
static void clntudp_destroy();
static enum clnt_stat clntudp_call(CLIENT *, u_long, xdrproc_t, caddr_t, xdrproc_t, caddr_t, struct timeval);
static void clntudp_abort(void);
static void clntudp_geterr(CLIENT *, struct rpc_err*);
static bool_t clntudp_freeres(CLIENT *, xdrproc_t, caddr_t);
static bool_t clntudp_control(CLIENT *, int, char *);
static void clntudp_destroy(CLIENT *);
static struct clnt_ops udp_ops = {
clntudp_call,
@@ -213,14 +213,14 @@ clntudp_create(raddr, program, version, wait, sockp)
}
static enum clnt_stat
clntudp_call(cl, proc, xargs, argsp, xresults, resultsp, utimeout)
register CLIENT *cl; /* client handle */
u_long proc; /* procedure number */
xdrproc_t xargs; /* xdr routine for args */
caddr_t argsp; /* pointer to args */
xdrproc_t xresults; /* xdr routine for results */
caddr_t resultsp; /* pointer to results */
struct timeval utimeout; /* seconds to wait before giving up */
clntudp_call(
CLIENT *cl, /* client handle */
u_long proc, /* procedure number */
xdrproc_t xargs, /* xdr routine for args */
caddr_t argsp, /* pointer to args */
xdrproc_t xresults, /* xdr routine for results */
caddr_t resultsp, /* pointer to results */
struct timeval utimeout ) /* seconds to wait before giving up */
{
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
register XDR *xdrs;
@@ -405,9 +405,9 @@ send_again:
}
static void
clntudp_geterr(cl, errp)
CLIENT *cl;
struct rpc_err *errp;
clntudp_geterr(
CLIENT *cl,
struct rpc_err *errp)
{
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
@@ -416,10 +416,10 @@ clntudp_geterr(cl, errp)
static bool_t
clntudp_freeres(cl, xdr_res, res_ptr)
CLIENT *cl;
xdrproc_t xdr_res;
caddr_t res_ptr;
clntudp_freeres(
CLIENT *cl,
xdrproc_t xdr_res,
caddr_t res_ptr)
{
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
register XDR *xdrs = &(cu->cu_outxdrs);
@@ -429,17 +429,16 @@ clntudp_freeres(cl, xdr_res, res_ptr)
}
static void
clntudp_abort(/*h*/)
/*CLIENT *h;*/
clntudp_abort(void)
{
}
static bool_t
clntudp_control(cl, request, info)
CLIENT *cl;
int request;
char *info;
clntudp_control(
CLIENT *cl,
int request,
char *info)
{
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
register struct timeval *tv;
@@ -554,8 +553,8 @@ clntudp_control(cl, request, info)
}
static void
clntudp_destroy(cl)
CLIENT *cl;
clntudp_destroy(
CLIENT *cl)
{
register struct cu_data *cu = (struct cu_data *)cl->cl_private;

View File

@@ -76,15 +76,15 @@ static const char rcsid[] =
*
*/
enum auth_stat _svcauth_null(); /* no authentication */
enum auth_stat _svcauth_unix(); /* (system) unix style (uid, gids) */
enum auth_stat _svcauth_short(); /* short hand unix style */
enum auth_stat _svcauth_des(); /* des style */
enum auth_stat _svcauth_null(struct svc_req *rqst, struct rpc_msg *msg); /* no authentication */
enum auth_stat _svcauth_unix(struct svc_req *rqst, struct rpc_msg *msg); /* (system) unix style (uid, gids) */
enum auth_stat _svcauth_short(struct svc_req *rqst, struct rpc_msg *msg); /* short hand unix style */
enum auth_stat _svcauth_des(struct svc_req *rqst, struct rpc_msg *msg); /* des style */
/* declarations to allow servers to specify new authentication flavors */
struct authsvc {
int flavor;
enum auth_stat (*handler)();
enum auth_stat (*handler)(struct svc_req *rqst, struct rpc_msg *msg);
struct authsvc *next;
};
#define Auths (rtems_rpc_task_variables->svc_auths_Auths)
@@ -108,9 +108,9 @@ struct authsvc {
* invalid.
*/
enum auth_stat
_authenticate(rqst, msg)
register struct svc_req *rqst;
struct rpc_msg *msg;
_authenticate(
struct svc_req *rqst,
struct rpc_msg *msg )
{
register int cred_flavor;
register struct authsvc *asp;
@@ -155,9 +155,9 @@ _authenticate(rqst, msg)
/*ARGSUSED*/
enum auth_stat
_svcauth_null(rqst, msg)
struct svc_req *rqst;
struct rpc_msg *msg;
_svcauth_null(
struct svc_req *rqst,
struct rpc_msg *msg)
{
return (AUTH_OK);
}
@@ -177,9 +177,9 @@ _svcauth_null(rqst, msg)
*/
int
svc_auth_reg(cred_flavor, handler)
register int cred_flavor;
enum auth_stat (*handler)();
svc_auth_reg(
int cred_flavor,
enum auth_stat (*handler)(struct svc_req *rqst, struct rpc_msg *msg))
{
register struct authsvc *asp;