diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-20 10:10:19 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-20 11:12:58 +0900 |
commit | 19ee48a6c29a03f6475689667b5c625a41589e72 (patch) | |
tree | 50ce8e0ca4bc9afaf8b89f5399473350203b898b /src/portable | |
parent | f26c38edfa8bb74cd7fb54bd7ab268f3013bd150 (diff) | |
download | systemd-19ee48a6c29a03f6475689667b5c625a41589e72.tar.gz |
tree-wide: introduce PIPE_EBADF macro
Diffstat (limited to 'src/portable')
-rw-r--r-- | src/portable/portable.c | 2 | ||||
-rw-r--r-- | src/portable/portabled-image-bus.c | 2 |
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; |