mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
When generating thread-safe server code, handle procedures with void return
types correctly.
This commit is contained in:
parent
cbcc55799f
commit
d458f4629b
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue