From b6e23ea73e13e0b6871ee9e29c03503b8b70da90 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 1 Aug 2008 06:19:45 +0000 Subject: Misc. ansifications. --- cpukit/librpc/src/rpc/rpc_prot.c | 54 ++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'cpukit/librpc/src/rpc') diff --git a/cpukit/librpc/src/rpc/rpc_prot.c b/cpukit/librpc/src/rpc/rpc_prot.c index e96c172f54..727fe8b27c 100644 --- a/cpukit/librpc/src/rpc/rpc_prot.c +++ b/cpukit/librpc/src/rpc/rpc_prot.c @@ -62,9 +62,9 @@ extern struct opaque_auth _null_auth; * (see auth.h) */ bool_t -xdr_opaque_auth(xdrs, ap) - XDR *xdrs; - struct opaque_auth *ap; +xdr_opaque_auth( + XDR *xdrs, + struct opaque_auth *ap) { if (xdr_enum(xdrs, &(ap->oa_flavor))) @@ -77,9 +77,9 @@ xdr_opaque_auth(xdrs, ap) * XDR a DES block */ bool_t -xdr_des_block(xdrs, blkp) - XDR *xdrs; - des_block *blkp; +xdr_des_block( + XDR *xdrs, + des_block *blkp) { return (xdr_opaque(xdrs, (caddr_t)blkp, sizeof(des_block))); } @@ -90,9 +90,9 @@ xdr_des_block(xdrs, blkp) * XDR the MSG_ACCEPTED part of a reply message union */ bool_t -xdr_accepted_reply(xdrs, ar) - XDR *xdrs; - struct accepted_reply *ar; +xdr_accepted_reply( + XDR *xdrs, + struct accepted_reply *ar) { /* personalized union, rather than calling xdr_union */ @@ -124,9 +124,9 @@ xdr_accepted_reply(xdrs, ar) * XDR the MSG_DENIED part of a reply message union */ bool_t -xdr_rejected_reply(xdrs, rr) - XDR *xdrs; - struct rejected_reply *rr; +xdr_rejected_reply( + XDR *xdrs, + struct rejected_reply *rr ) { /* personalized union, rather than calling xdr_union */ @@ -154,9 +154,9 @@ static const struct xdr_discrim reply_dscrm[3] = { * XDR a reply message */ bool_t -xdr_replymsg(xdrs, rmsg) - XDR *xdrs; - struct rpc_msg *rmsg; +xdr_replymsg( + XDR *xdrs, + struct rpc_msg *rmsg) { if ( xdr_u_int32_t(xdrs, &(rmsg->rm_xid)) && @@ -174,9 +174,9 @@ xdr_replymsg(xdrs, rmsg) * The rm_xid is not really static, but the user can easily munge on the fly. */ bool_t -xdr_callhdr(xdrs, cmsg) - XDR *xdrs; - struct rpc_msg *cmsg; +xdr_callhdr( + XDR *xdrs, + struct rpc_msg *cmsg) { cmsg->rm_direction = CALL; @@ -194,9 +194,9 @@ xdr_callhdr(xdrs, cmsg) /* ************************** Client utility routine ************* */ static void -accepted(acpt_stat, error) - enum accept_stat acpt_stat; - struct rpc_err *error; +accepted( + enum accept_stat acpt_stat, + struct rpc_err *error) { switch (acpt_stat) { @@ -232,9 +232,9 @@ accepted(acpt_stat, error) } static void -rejected(rjct_stat, error) - enum reject_stat rjct_stat; - struct rpc_err *error; +rejected( + enum reject_stat rjct_stat, + struct rpc_err *error) { switch (rjct_stat) { @@ -259,9 +259,9 @@ rejected(rjct_stat, error) * given a reply message, fills in the error */ void -_seterr_reply(msg, error) - struct rpc_msg *msg; - struct rpc_err *error; +_seterr_reply( + struct rpc_msg *msg, + struct rpc_err *error) { /* optimized for normal, SUCCESSful case */ -- cgit v1.2.3