When generating thread-safe server code, handle procedures with void return
types correctly.
This commit is contained in:
parent
cbcc55799f
commit
d458f4629b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user