chiark / gitweb /
treewide: no need to negate errno for log_*_errno()
[elogind.git] / src / activate / activate.c
index f4f41ed36cc31870e3a74fb8fbe27d4e7b2db01e..70f86bb1e99a653eeb3c99c0aef07aa49a2c7396 100644 (file)
@@ -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;
                 }