When generating thread-safe server code, handle procedures with void return

types correctly.
This commit is contained in:
Doug Rabson 2008-08-12 13:38:06 +00:00
parent cbcc55799f
commit d458f4629b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181630

View File

@ -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);