summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2008-08-12 13:38:06 +0000
committerdfr <dfr@FreeBSD.org>2008-08-12 13:38:06 +0000
commit53c0d641ea4a88bd379bfda8a45bda6fd4c08f23 (patch)
tree1130fd1974f60dafa100e4db8d89fb30579ab98c /usr.bin
parenteec64737a22a58ddedbd46ac71661010c8a119ae (diff)
downloadFreeBSD-src-53c0d641ea4a88bd379bfda8a45bda6fd4c08f23.zip
FreeBSD-src-53c0d641ea4a88bd379bfda8a45bda6fd4c08f23.tar.gz
When generating thread-safe server code, handle procedures with void return
types correctly.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rpcgen/rpc_svcout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/rpcgen/rpc_svcout.c b/usr.bin/rpcgen/rpc_svcout.c
index 6fd7cad..40fc61c 100644
--- a/usr.bin/rpcgen/rpc_svcout.c
+++ b/usr.bin/rpcgen/rpc_svcout.c
@@ -433,6 +433,9 @@ write_program(definition *def, const char *storage)
if (mtflag) {
f_print(fout, "\tunion {\n");
for (proc = vp->procs; proc != NULL; proc = proc->next) {
+ if (streq(proc->res_type, "void")) {
+ continue;
+ }
f_print(fout, "\t\t");
ptype(proc->res_prefix, proc->res_type, 0);
pvname(proc->proc_name, vp->vers_num);
OpenPOWER on IntegriCloud