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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user