Skip to content

Commit

Permalink
journal-remote-main: pass the right error variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dtardon committed May 7, 2024
1 parent cc4482e commit 47eab95
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 47eab95

Please sign in to comment.