summaryrefslogtreecommitdiffstats
path: root/src/test/test-varlink.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-12-19 13:20:30 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-12-19 15:00:59 +0100
commit3401477982d09e0c9815ae5a69e56f43f187967e (patch)
treefdf3ce225df76b9e643835928dc29aeef02a51fc /src/test/test-varlink.c
parenttree-wide: change initialization to use EBADF instead of EBADFD (diff)
downloadsystemd-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/test/test-varlink.c')
-rw-r--r--src/test/test-varlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-varlink.c b/src/test/test-varlink.c
index 7515da52ba..5811259183 100644
--- a/src/test/test-varlink.c
+++ b/src/test/test-varlink.c
@@ -191,7 +191,7 @@ int main(int argc, char *argv[]) {
_cleanup_(rm_rf_physical_and_freep) char *tmpdir = NULL;
_cleanup_(json_variant_unrefp) JsonVariant *v = NULL;
_cleanup_(sd_event_unrefp) sd_event *e = NULL;
- _cleanup_(close_pairp) int block_fds[2] = { -1, -1 };
+ _cleanup_(close_pairp) int block_fds[2] = { -EBADF, -EBADF };
pthread_t t;
const char *sp;