summaryrefslogtreecommitdiff
path: root/src/fsck
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/fsck
parentf26c38edfa8bb74cd7fb54bd7ab268f3013bd150 (diff)
downloadsystemd-19ee48a6c29a03f6475689667b5c625a41589e72.tar.gz
tree-wide: introduce PIPE_EBADF macro
Diffstat (limited to 'src/fsck')
-rw-r--r--src/fsck/fsck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c
index 29265d9220..37fdfa540f 100644
--- a/src/fsck/fsck.c
+++ b/src/fsck/fsck.c
@@ -241,7 +241,7 @@ static int fsck_progress_socket(void) {
}
static int run(int argc, char *argv[]) {
- _cleanup_close_pair_ int progress_pipe[2] = { -EBADF, -EBADF };
+ _cleanup_close_pair_ int progress_pipe[2] = PIPE_EBADF;
_cleanup_(sd_device_unrefp) sd_device *dev = NULL;
_cleanup_free_ char *dpath = NULL;
_cleanup_fclose_ FILE *console = NULL;