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
@@ -37,7 +37,7 @@ int server_address_new(
memcpy(&a->sockaddr, sockaddr, socklen);
LIST_FIND_TAIL(addresses, n->addresses, tail);
tail = LIST_FIND_TAIL(addresses, n->addresses);
LIST_INSERT_AFTER(addresses, n->addresses, tail, a);
if (ret)