tree-wide: make use of errno_or_else() everywhere
This commit is contained in:
@@ -78,7 +78,7 @@ int socket_address_parse(SocketAddress *a, const char *s) {
|
||||
|
||||
errno = 0;
|
||||
if (inet_pton(AF_INET6, n, &a->sockaddr.in6.sin6_addr) <= 0)
|
||||
return errno > 0 ? -errno : -EINVAL;
|
||||
return errno_or_else(EINVAL);
|
||||
|
||||
e++;
|
||||
if (*e != ':')
|
||||
|
||||
Reference in New Issue
Block a user