Use ANSI C prototypes.
Eliminates gcc 4.9 warnings.
This commit is contained in:
parent
6fcf3575e2
commit
a7c2cd38d4
@ -68,9 +68,7 @@ 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)
|
||||
{
|
||||
|
||||
assert(xdrs != NULL);
|
||||
@ -86,9 +84,7 @@ 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)
|
||||
{
|
||||
|
||||
assert(xdrs != NULL);
|
||||
@ -103,9 +99,7 @@ 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)
|
||||
{
|
||||
enum accept_stat *par_stat;
|
||||
|
||||
@ -142,9 +136,7 @@ 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)
|
||||
{
|
||||
enum reject_stat *prj_stat;
|
||||
enum auth_stat *prj_why;
|
||||
@ -182,9 +174,7 @@ 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)
|
||||
{
|
||||
enum msg_type *prm_direction;
|
||||
enum reply_stat *prp_stat;
|
||||
@ -212,9 +202,7 @@ 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)
|
||||
{
|
||||
enum msg_type *prm_direction;
|
||||
|
||||
@ -238,9 +226,7 @@ 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)
|
||||
{
|
||||
|
||||
assert(error != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user