From d458f4629b6231ead5c11758dfcb88ce106c615e Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Tue, 12 Aug 2008 13:38:06 +0000 Subject: [PATCH] When generating thread-safe server code, handle procedures with void return types correctly. --- usr.bin/rpcgen/rpc_svcout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.bin/rpcgen/rpc_svcout.c b/usr.bin/rpcgen/rpc_svcout.c index 6fd7cad2ce6..40fc61cb9ec 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);