treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values.
This commit is contained in:
@@ -103,7 +103,7 @@ static int open_sockets(int *epoll_fd, bool accept) {
|
||||
fd = make_socket_fd(LOG_DEBUG, *address, SOCK_STREAM | (arg_accept*SOCK_CLOEXEC));
|
||||
if (fd < 0) {
|
||||
log_open();
|
||||
log_error_errno(-fd, "Failed to open '%s': %m", *address);
|
||||
log_error_errno(fd, "Failed to open '%s': %m", *address);
|
||||
return fd;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user