summaryrefslogtreecommitdiffstats
path: root/usr.bin/rpcgen
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
committerbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
commit4822432874e997891c75df8d30dcab4c52d1a9fa (patch)
tree6a75551fe39c6d09c4b5991bbb0a4f3d685835fe /usr.bin/rpcgen
parent7c7c72da3801ba6f43e728ff5145b4988674abeb (diff)
downloadFreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.zip
FreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.tar.gz
Clean up some ambiguous nested if/elses.
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r--usr.bin/rpcgen/rpc_cout.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/rpcgen/rpc_cout.c b/usr.bin/rpcgen/rpc_cout.c
index f8dd6b3..4fc6684 100644
--- a/usr.bin/rpcgen/rpc_cout.c
+++ b/usr.bin/rpcgen/rpc_cout.c
@@ -34,7 +34,7 @@
static char sccsid[] = "@(#)rpc_cout.c 1.13 89/02/22 (C) 1987 SMI";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: rpc_cout.c,v 1.5 1997/08/06 06:47:39 charnier Exp $";
#endif
/*
@@ -466,7 +466,7 @@ int flag;
}
}
} else {
- if (i > 0)
+ if (i > 0) {
if (sizestr == NULL && size < inline){
/*
* don't expand into inline code
@@ -482,7 +482,7 @@ int flag;
if (sizestr == NULL)
f_print(fout, "buf = XDR_INLINE(xdrs, %d * BYTES_PER_XDR_UNIT);",
size);
- else
+ else {
if (size == 0)
f_print(fout,
"buf = XDR_INLINE(xdrs, (%s) * BYTES_PER_XDR_UNIT);",
@@ -492,6 +492,7 @@ int flag;
"buf = XDR_INLINE(xdrs, (%d + (%s)) * BYTES_PER_XDR_UNIT);",
size, sizestr);
+ }
f_print(fout, "\n");
tabify(fout, indent + 1);
f_print(fout,
@@ -514,6 +515,7 @@ int flag;
tabify(fout, indent + 1);
f_print(fout, "}\n");
}
+ }
size = 0;
i = 0;
sizestr = NULL;
OpenPOWER on IntegriCloud