diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-12-19 13:20:30 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-12-19 15:00:59 +0100 |
commit | 3401477982d09e0c9815ae5a69e56f43f187967e (patch) | |
tree | fdf3ce225df76b9e643835928dc29aeef02a51fc /src/fsck | |
parent | tree-wide: change initialization to use EBADF instead of EBADFD (diff) | |
download | systemd-3401477982d09e0c9815ae5a69e56f43f187967e.tar.xz systemd-3401477982d09e0c9815ae5a69e56f43f187967e.zip |
tree-wide: use -EBADF also in pipe initializers
In some places, initialization is dropped when unnecesary.
Diffstat (limited to 'src/fsck')
-rw-r--r-- | src/fsck/fsck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index f5c0732cf5..29265d9220 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] = { -1, -1 }; + _cleanup_close_pair_ int progress_pipe[2] = { -EBADF, -EBADF }; _cleanup_(sd_device_unrefp) sd_device *dev = NULL; _cleanup_free_ char *dpath = NULL; _cleanup_fclose_ FILE *console = NULL; |