summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-06-16 12:10:04 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-06-16 17:06:54 -0400
commitd3be47c483b9e8a5b773b48d18c99b4256b17c70 (patch)
treea65b1cbb14661991abb08d4a45cc3f89e0b5736f
parent342c39d0bf6724f8fb386aef5e214571c08371b6 (diff)
nspawn: send_one_fd() uses the "return -errno" convention, not errno
-rw-r--r--src/nspawn/nspawn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index f3e27f04f5..be0dc5e86b 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -3174,9 +3174,9 @@ static int outer_child(
return -EIO;
}
- l = send_one_fd(notify_socket, fd, 0);
- if (l < 0)
- return log_error_errno(errno, "Failed to send notify fd: %m");
+ r = send_one_fd(notify_socket, fd, 0);
+ if (r < 0)
+ return log_error_errno(r, "Failed to send notify fd: %m");
pid_socket = safe_close(pid_socket);
uuid_socket = safe_close(uuid_socket);