diff options
author | alfred <alfred@FreeBSD.org> | 2002-07-14 17:54:00 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-07-14 17:54:00 +0000 |
commit | d95d8b89ab353bd4c7a5eef5bb7242dee7ccea22 (patch) | |
tree | 6c7d6c49e0d195459b63ed0699dde870666fc676 /usr.bin/rpcgen/rpc_cout.c | |
parent | 44dbe3e8f49778179a228e43bdf8231585b9c4f7 (diff) | |
download | FreeBSD-src-d95d8b89ab353bd4c7a5eef5bb7242dee7ccea22.zip FreeBSD-src-d95d8b89ab353bd4c7a5eef5bb7242dee7ccea22.tar.gz |
- TI-RPC is now the default again for code generation.
- As before, inetd support support is turned of per default.
Code for inetd can be made with -I.
- Support for ``transport monitors'' and the NLSPROVIDER env
variable is still there , even if their use is not clear in
non TLI stream based systems like Free-/NetBSD. It can be activated
with -P.
- There are a few corrections in rpcgen.1 and usage function to conform
to the code. Added and documented -P
- I removed the #ifdefs checks for Free-/NetBSD since we are the only
ones who use this code. MaxOS X may have the same limitations as
we have, so this code will correctly build for them.
- Generate correct cflags.
Submitted by: mbr, Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
PR: bin/29175, misc/27816
Diffstat (limited to 'usr.bin/rpcgen/rpc_cout.c')
-rw-r--r-- | usr.bin/rpcgen/rpc_cout.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/rpcgen/rpc_cout.c b/usr.bin/rpcgen/rpc_cout.c index a9d19e9..8f1bcdc 100644 --- a/usr.bin/rpcgen/rpc_cout.c +++ b/usr.bin/rpcgen/rpc_cout.c @@ -99,6 +99,7 @@ emit(def) break; /* DEF_CONST and DEF_PROGRAM have already been handled */ default: + break; } print_trailer(); } @@ -415,6 +416,7 @@ int flag; char ptemp[256]; int indent = 1; + cur = NULL; if (flag == PUT) f_print(fout, "\n\tif (xdrs->x_op == XDR_ENCODE) {\n"); else @@ -523,7 +525,7 @@ int flag; } } - if (i > 0) + if (i > 0) { if (sizestr == NULL && size < inline){ /* don't expand into inline code if size < inline */ while (cur != dl){ @@ -560,6 +562,7 @@ int flag; } f_print(fout, "\t\t}\n"); } + } } static void @@ -691,7 +694,9 @@ int flag; f_print(fout, "}\n"); tabify(fout, indent); f_print(fout, "}\n"); + break; default: + break; } } |