Skip to content

Commit

Permalink
journal-remote-main: pass the right error variable
Browse files Browse the repository at this point in the history
(cherry picked from commit 47eab95)
(cherry picked from commit 8871097)
  • Loading branch information
dtardon authored and bluca committed May 9, 2024
1 parent eecb0ea commit 131bd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/journal-remote/journal-remote-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static int spawn_child(const char* child, char** argv) {

r = fd_nonblock(fd[0], true);
if (r < 0)
log_warning_errno(errno, "Failed to set child pipe to non-blocking: %m");
log_warning_errno(r, "Failed to set child pipe to non-blocking: %m");

return fd[0];
}
Expand Down

0 comments on commit 131bd31

Please sign in to comment.