summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-12-20 10:10:19 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-12-20 11:12:58 +0900
commit19ee48a6c29a03f6475689667b5c625a41589e72 (patch)
tree50ce8e0ca4bc9afaf8b89f5399473350203b898b /src/portable
parentf26c38edfa8bb74cd7fb54bd7ab268f3013bd150 (diff)
downloadsystemd-19ee48a6c29a03f6475689667b5c625a41589e72.tar.gz
tree-wide: introduce PIPE_EBADF macro
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/portable.c2
-rw-r--r--src/portable/portabled-image-bus.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c
index 28d9ccd302..7be1afbcc4 100644
--- a/src/portable/portable.c
+++ b/src/portable/portable.c
@@ -355,7 +355,7 @@ static int portable_extract_by_path(
else {
_cleanup_(dissected_image_unrefp) DissectedImage *m = NULL;
_cleanup_(rmdir_and_freep) char *tmpdir = NULL;
- _cleanup_(close_pairp) int seq[2] = { -EBADF, -EBADF };
+ _cleanup_(close_pairp) int seq[2] = PIPE_EBADF;
_cleanup_(sigkill_waitp) pid_t child = 0;
/* We now have a loopback block device, let's fork off a child in its own mount namespace, mount it
diff --git a/src/portable/portabled-image-bus.c b/src/portable/portabled-image-bus.c
index f0eb71b710..07d10b05bf 100644
--- a/src/portable/portabled-image-bus.c
+++ b/src/portable/portabled-image-bus.c
@@ -486,7 +486,7 @@ int bus_image_common_remove(
Image *image,
sd_bus_error *error) {
- _cleanup_close_pair_ int errno_pipe_fd[2] = { -EBADF, -EBADF };
+ _cleanup_close_pair_ int errno_pipe_fd[2] = PIPE_EBADF;
_cleanup_(sigkill_waitp) pid_t child = 0;
PortableState state;
int r;