basic: Use statement expressions more in list.h

Let's use statement expressions to return values instead of passing
in return arguments to the LIST macros.
This commit is contained in:
Daan De Meyer
2023-01-08 16:31:15 +01:00
parent d80463ea2f
commit cc232fa094
8 changed files with 65 additions and 69 deletions
+1 -1
View File
@@ -6491,7 +6491,7 @@ void exec_command_append_list(ExecCommand **l, ExecCommand *e) {
if (*l) {
/* It's kind of important, that we keep the order here */
LIST_FIND_TAIL(command, *l, end);
end = LIST_FIND_TAIL(command, *l);
LIST_INSERT_AFTER(command, *l, end, e);
} else
*l = e;