Changeset b03af1c2 in rtems for cpukit/librpc


Ignore:
Timestamp:
Aug 1, 2008, 3:16:38 PM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
8016f1a
Parents:
7013243
Message:

Add missing prototypes.

Location:
cpukit/librpc/src/rpc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/librpc/src/rpc/clnt_raw.c

    r7013243 rb03af1c2  
    6363#define clntraw_private (rtems_rpc_task_variables->clnt_raw_private)
    6464
    65 static enum clnt_stat   clntraw_call();
    66 static void             clntraw_abort();
    67 static void             clntraw_geterr();
    68 static bool_t           clntraw_freeres();
    69 static bool_t           clntraw_control();
    70 static void             clntraw_destroy();
     65static 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);
     66static void             clntraw_abort(void);
     67static void             clntraw_geterr(CLIENT *h, struct rpc_err*);
     68static bool_t           clntraw_freeres(CLIENT *, xdrproc_t, caddr_t);
     69static bool_t           clntraw_control(CLIENT *, int, char *);
     70static void             clntraw_destroy(CLIENT *);
    7171
    7272static struct clnt_ops client_ops = {
     
    7878        clntraw_control
    7979};
    80 
    81 void    svc_getreq();
    8280
    8381/*
     
    203201
    204202static void
    205 clntraw_geterr()
     203clntraw_geterr(CLIENT *cl, struct rpc_err *err)
    206204{
    207205}
     
    228226
    229227static void
    230 clntraw_abort()
     228clntraw_abort(void)
    231229{
    232230}
    233231
    234232static bool_t
    235 clntraw_control()
     233clntraw_control(CLIENT *cl, int request, char *info)
    236234{
    237235        return (FALSE);
     
    239237
    240238static void
    241 clntraw_destroy()
    242 {
    243 }
     239clntraw_destroy(CLIENT *cl)
     240{
     241}
  • cpukit/librpc/src/rpc/clnt_udp.c

    r7013243 rb03af1c2  
    5555 * UDP bases client side rpc operations
    5656 */
    57 static enum clnt_stat   clntudp_call();
    58 static void             clntudp_abort();
    59 static void             clntudp_geterr();
    60 static bool_t           clntudp_freeres();
    61 static bool_t           clntudp_control();
    62 static void             clntudp_destroy();
     57static enum clnt_stat   clntudp_call(CLIENT *, u_long, xdrproc_t, caddr_t, xdrproc_t, caddr_t, struct timeval);
     58static void             clntudp_abort(void);
     59static void             clntudp_geterr(CLIENT *, struct rpc_err*);
     60static bool_t           clntudp_freeres(CLIENT *, xdrproc_t, caddr_t);
     61static bool_t           clntudp_control(CLIENT *, int, char *);
     62static void             clntudp_destroy(CLIENT *);
    6363
    6464static struct clnt_ops udp_ops = {
     
    214214
    215215static enum clnt_stat
    216 clntudp_call(cl, proc, xargs, argsp, xresults, resultsp, utimeout)
    217         register CLIENT *cl;            /* client handle */
    218         u_long          proc;           /* procedure number */
    219         xdrproc_t       xargs;          /* xdr routine for args */
    220         caddr_t         argsp;          /* pointer to args */
    221         xdrproc_t       xresults;       /* xdr routine for results */
    222         caddr_t         resultsp;       /* pointer to results */
    223         struct timeval  utimeout;       /* seconds to wait before giving up */
     216clntudp_call(
     217        CLIENT  *cl,                    /* client handle */
     218        u_long          proc,           /* procedure number */
     219        xdrproc_t       xargs,          /* xdr routine for args */
     220        caddr_t         argsp,          /* pointer to args */
     221        xdrproc_t       xresults,       /* xdr routine for results */
     222        caddr_t         resultsp,       /* pointer to results */
     223        struct timeval  utimeout )      /* seconds to wait before giving up */
    224224{
    225225        register struct cu_data *cu = (struct cu_data *)cl->cl_private;
     
    406406
    407407static void
    408 clntudp_geterr(cl, errp)
    409         CLIENT *cl;
    410         struct rpc_err *errp;
     408clntudp_geterr(
     409        CLIENT *cl,
     410        struct rpc_err *errp)
    411411{
    412412        register struct cu_data *cu = (struct cu_data *)cl->cl_private;
     
    417417
    418418static bool_t
    419 clntudp_freeres(cl, xdr_res, res_ptr)
    420         CLIENT *cl;
    421         xdrproc_t xdr_res;
    422         caddr_t res_ptr;
     419clntudp_freeres(
     420        CLIENT *cl,
     421        xdrproc_t xdr_res,
     422        caddr_t res_ptr)
    423423{
    424424        register struct cu_data *cu = (struct cu_data *)cl->cl_private;
     
    430430
    431431static void
    432 clntudp_abort(/*h*/)
    433         /*CLIENT *h;*/
     432clntudp_abort(void)
    434433{
    435434}
     
    437436
    438437static bool_t
    439 clntudp_control(cl, request, info)
    440         CLIENT *cl;
    441         int request;
    442         char *info;
     438clntudp_control(
     439        CLIENT *cl,
     440        int request,
     441        char *info)
    443442{
    444443        register struct cu_data *cu = (struct cu_data *)cl->cl_private;
     
    555554
    556555static void
    557 clntudp_destroy(cl)
    558         CLIENT *cl;
     556clntudp_destroy(
     557        CLIENT *cl)
    559558{
    560559        register struct cu_data *cu = (struct cu_data *)cl->cl_private;
  • cpukit/librpc/src/rpc/svc_auth.c

    r7013243 rb03af1c2  
    7777 */
    7878
    79 enum auth_stat _svcauth_null(); /* no authentication */
    80 enum auth_stat _svcauth_unix();         /* (system) unix style (uid, gids) */
    81 enum auth_stat _svcauth_short();        /* short hand unix style */
    82 enum auth_stat _svcauth_des();          /* des style */
     79enum auth_stat _svcauth_null(struct svc_req *rqst, struct rpc_msg *msg);        /* no authentication */
     80enum auth_stat _svcauth_unix(struct svc_req *rqst, struct rpc_msg *msg);                /* (system) unix style (uid, gids) */
     81enum auth_stat _svcauth_short(struct svc_req *rqst, struct rpc_msg *msg);       /* short hand unix style */
     82enum auth_stat _svcauth_des(struct svc_req *rqst, struct rpc_msg *msg);         /* des style */
    8383
    8484/* declarations to allow servers to specify new authentication flavors */
    8585struct authsvc {
    8686        int     flavor;
    87         enum    auth_stat (*handler)();
     87        enum    auth_stat (*handler)(struct svc_req *rqst, struct rpc_msg *msg);
    8888        struct  authsvc   *next;
    8989};
     
    109109 */
    110110enum auth_stat
    111 _authenticate(rqst, msg)
    112         register struct svc_req *rqst;
    113         struct rpc_msg *msg;
     111_authenticate(
     112        struct svc_req *rqst,
     113        struct rpc_msg *msg )
    114114{
    115115        register int cred_flavor;
     
    156156/*ARGSUSED*/
    157157enum auth_stat
    158 _svcauth_null(rqst, msg)
    159         struct svc_req *rqst;
    160         struct rpc_msg *msg;
     158_svcauth_null(
     159        struct svc_req *rqst,
     160        struct rpc_msg *msg)
    161161{
    162162        return (AUTH_OK);
     
    178178
    179179int
    180 svc_auth_reg(cred_flavor, handler)
    181         register int cred_flavor;
    182         enum auth_stat (*handler)();
     180svc_auth_reg(
     181        int cred_flavor,
     182        enum auth_stat (*handler)(struct svc_req *rqst, struct rpc_msg *msg))
    183183{
    184184        register struct authsvc *asp;
Note: See TracChangeset for help on using the changeset viewer.