aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2008-08-12 13:38:06 +0000
committerDoug Rabson <dfr@FreeBSD.org>2008-08-12 13:38:06 +0000
commitd458f4629b6231ead5c11758dfcb88ce106c615e (patch)
tree1130fd1974f60dafa100e4db8d89fb30579ab98c /usr.bin
parentcbcc55799fe93e5f65b72b1a85b718e1a1b89fb2 (diff)
downloadsrc-d458f4629b6231ead5c11758dfcb88ce106c615e.tar.gz
src-d458f4629b6231ead5c11758dfcb88ce106c615e.zip
When generating thread-safe server code, handle procedures with void return
types correctly.
Notes
Notes: svn path=/head/; revision=181630
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 6fd7cad2ce64..40fc61cb9ec4 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);