diff options
author | Ezra Peisach <epeisach@mit.edu> | 2001-06-28 20:46:58 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2001-06-28 20:46:58 +0000 |
commit | ab9f9a4a46e93259281d198a9fa9420886acd895 (patch) | |
tree | 7bcc54a36ed419869208067efe82fd1084defeea /src/lib/rpc/clnt_raw.c | |
parent | 1af8e1107c28fd2ca3ab55486d0e0061509ec566 (diff) | |
download | krb5-ab9f9a4a46e93259281d198a9fa9420886acd895.tar.gz krb5-ab9f9a4a46e93259281d198a9fa9420886acd895.tar.xz krb5-ab9f9a4a46e93259281d198a9fa9420886acd895.zip |
* auth.h: Provide full prototype for xdr_des_block
* auth_gssapi.h: Complete prototypes for
_svcauth_gssapi_unset_names().
* clnt.h: Prototype dispatch functions and all functions.
* clnt_perror.c: Prototype static auth_errmsg().
* clnt_raw.h clnt_tcp.c, clnt_udp.c: Provide prototypes to static
functions and match dispatch table prototypes. control function
takes void * instead of caddr_t.
* pmap_rmt.c: Move prototype for resultproc_t to pmap_clnt.h.
* rpc.h: get_myaddress returns int. Add prototypes for callrpc and
getrpcport.
* rpc_commondata.c (rpc_createerr): When initializing rpc_creaerr
use RPC_SUCCESS instead of 0.
* get_myaddress.c, rpc_dtablesize.c: Include gssrpc/rpc.h for
prototype.
* pmap_clnt.h, pmap_prot.h, pmap_rmt.h, rpc_msg.h: Full prototypes
for all functions.
* svc.c: Provide full prototype for static function.
* svc.h: Prototypes for dispatch functions added. Flushed out
prototypes for all functions missing prototypes. Added prototype
for svcfd_create.
* svc_auth.c: Prototypes for all functions referenced.
* svc_auth.h: Prototype dispatch functions to svc_auth_ops.
* svc_auth_any.c: Replace use of authany_wrap() with a new local
function that matches svc_auth_ops dispatch table.
* svc_simple.c: Provide prototype for static function
universal. Fill in missing types of parameters to
gssrpc_registerrpc.
* svc_raw.c svc_tcp.c, svc_udp.c: Provide prototypes for static
functions and match prototypes in dispatch table. Change getargs
and freeargs argument to void * from caddr_t.
* xdr.c (xdr_void): Function to match prototype of arguments given.
* xdr.h: Provide full prototypes for xdr_ops dispatch table and
xdr_void().
* svc_auth_gssapi.c, xdr_alloc.c, xdr_mem.c, xdr_rec.c,
xdr_stdio.c: Provide protypes for static functions and match
dispatch tables.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13528 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/rpc/clnt_raw.c')
-rw-r--r-- | src/lib/rpc/clnt_raw.c | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/src/lib/rpc/clnt_raw.c b/src/lib/rpc/clnt_raw.c index 44fbf5da2..464142a44 100644 --- a/src/lib/rpc/clnt_raw.c +++ b/src/lib/rpc/clnt_raw.c @@ -57,12 +57,14 @@ static struct clntraw_private { unsigned int mcnt; } *clntraw_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 *, rpc_u_int32, xdrproc_t, + void *, xdrproc_t, void *, + struct timeval); +static void clntraw_abort(CLIENT *); +static void clntraw_geterr(CLIENT *, struct rpc_err *); +static bool_t clntraw_freeres(CLIENT *, xdrproc_t, void *); +static bool_t clntraw_control(CLIENT *, int, void *); +static void clntraw_destroy(CLIENT *); static struct clnt_ops client_ops = { clntraw_call, @@ -126,9 +128,9 @@ clntraw_call(h, proc, xargs, argsp, xresults, resultsp, timeout) CLIENT *h; rpc_u_int32 proc; xdrproc_t xargs; - caddr_t argsp; + void * argsp; xdrproc_t xresults; - caddr_t resultsp; + void * resultsp; struct timeval timeout; { register struct clntraw_private *clp = clntraw_private; @@ -180,7 +182,7 @@ call_again: * specifies a receive buffer size that is too small.) * This memory must be free()ed to avoid a leak. */ - int op = xdrs->x_op; + enum xdr_op op = xdrs->x_op; xdrs->x_op = XDR_FREE; xdr_replymsg(xdrs, &msg); xdrs->x_op = op; @@ -212,8 +214,11 @@ call_again: return (status); } +/*ARGSUSED*/ static void -clntraw_geterr() +clntraw_geterr(cl, err) + CLIENT *cl; + struct rpc_err *err; { } @@ -222,7 +227,7 @@ static bool_t clntraw_freeres(cl, xdr_res, res_ptr) CLIENT *cl; xdrproc_t xdr_res; - caddr_t res_ptr; + void *res_ptr; { register struct clntraw_private *clp = clntraw_private; register XDR *xdrs = &clp->xdr_stream; @@ -237,18 +242,26 @@ clntraw_freeres(cl, xdr_res, res_ptr) return ((*xdr_res)(xdrs, res_ptr)); } +/*ARGSUSED*/ static void -clntraw_abort() +clntraw_abort(cl) + CLIENT *cl; { } +/*ARGSUSED*/ static bool_t -clntraw_control() +clntraw_control(cl, request, info) + CLIENT *cl; + int request; + void *info; { return (FALSE); } +/*ARGSUSED*/ static void -clntraw_destroy() +clntraw_destroy(cl) + CLIENT *cl; { } |