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
@@ -952,7 +952,7 @@ static int map_exec(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus_e
if (!info)
return -ENOMEM;
LIST_FIND_TAIL(exec_status_info_list, i->exec_status_info_list, last);
last = LIST_FIND_TAIL(exec_status_info_list, i->exec_status_info_list);
while ((r = exec_status_info_deserialize(m, info, is_ex_prop)) > 0) {