summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-27 21:02:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-27 21:02:41 +0000
commite5db03542079cf684702257ebe3c9f48ac96e81d (patch)
tree239b7b9e692ebeec815a5190a657bbd0fbaa377b /lib
parentc1b619cd36b34006524f18223a09ccc3104f7a57 (diff)
indent
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/rpc/rpc_prot.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/lib/libc/rpc/rpc_prot.c b/lib/libc/rpc/rpc_prot.c
index 8314e0b0176..d0ca72de32b 100644
--- a/lib/libc/rpc/rpc_prot.c
+++ b/lib/libc/rpc/rpc_prot.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: rpc_prot.c,v 1.4 1997/07/16 22:33:45 deraadt Exp $";
+static char *rcsid = "$OpenBSD: rpc_prot.c,v 1.5 1998/02/27 21:02:40 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -64,7 +64,7 @@ xdr_opaque_auth(xdrs, ap)
if (xdr_enum(xdrs, &(ap->oa_flavor)))
return (xdr_bytes(xdrs, &ap->oa_base,
- &ap->oa_length, MAX_AUTH_BYTES));
+ &ap->oa_length, MAX_AUTH_BYTES));
return (FALSE);
}
@@ -95,13 +95,12 @@ xdr_accepted_reply(xdrs, ar)
return (FALSE);
if (! xdr_enum(xdrs, (enum_t *)&(ar->ar_stat)))
return (FALSE);
- switch (ar->ar_stat) {
+ switch (ar->ar_stat) {
case SUCCESS:
return ((*(ar->ar_results.proc))(xdrs, ar->ar_results.where));
-
case PROG_MISMATCH:
- if (! xdr_u_int32_t(xdrs, &(ar->ar_vers.low)))
+ if (!xdr_u_int32_t(xdrs, &(ar->ar_vers.low)))
return (FALSE);
return (xdr_u_int32_t(xdrs, &(ar->ar_vers.high)));
}
@@ -120,13 +119,12 @@ xdr_rejected_reply(xdrs, rr)
/* personalized union, rather than calling xdr_union */
if (! xdr_enum(xdrs, (enum_t *)&(rr->rj_stat)))
return (FALSE);
- switch (rr->rj_stat) {
+ switch (rr->rj_stat) {
case RPC_MISMATCH:
- if (! xdr_u_int32_t(xdrs, &(rr->rj_vers.low)))
+ if (!xdr_u_int32_t(xdrs, &(rr->rj_vers.low)))
return (FALSE);
return (xdr_u_int32_t(xdrs, &(rr->rj_vers.high)));
-
case AUTH_ERROR:
return (xdr_enum(xdrs, (enum_t *)&(rr->rj_why)));
}
@@ -146,10 +144,9 @@ xdr_replymsg(xdrs, rmsg)
register XDR *xdrs;
register struct rpc_msg *rmsg;
{
- if (
- xdr_u_int32_t(xdrs, &(rmsg->rm_xid)) &&
+ if (xdr_u_int32_t(xdrs, &(rmsg->rm_xid)) &&
xdr_enum(xdrs, (enum_t *)&(rmsg->rm_direction)) &&
- (rmsg->rm_direction == REPLY) )
+ rmsg->rm_direction == REPLY)
return (xdr_union(xdrs, (enum_t *)&(rmsg->rm_reply.rp_stat),
(caddr_t)&(rmsg->rm_reply.ru), reply_dscrm, NULL_xdrproc_t));
return (FALSE);
@@ -169,13 +166,12 @@ xdr_callhdr(xdrs, cmsg)
cmsg->rm_direction = CALL;
cmsg->rm_call.cb_rpcvers = RPC_MSG_VERSION;
- if (
- (xdrs->x_op == XDR_ENCODE) &&
+ if (xdrs->x_op == XDR_ENCODE &&
xdr_u_int32_t(xdrs, &(cmsg->rm_xid)) &&
xdr_enum(xdrs, (enum_t *)&(cmsg->rm_direction)) &&
xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_rpcvers)) &&
- xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_prog)) )
- return (xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_vers)));
+ xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_prog)))
+ return (xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_vers)));
return (FALSE);
}