From 19ee48a6c29a03f6475689667b5c625a41589e72 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 20 Dec 2022 10:10:19 +0900 Subject: tree-wide: introduce PIPE_EBADF macro --- src/fuzz/fuzz-varlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fuzz') diff --git a/src/fuzz/fuzz-varlink.c b/src/fuzz/fuzz-varlink.c index c97586be9e..cbfde088d9 100644 --- a/src/fuzz/fuzz-varlink.c +++ b/src/fuzz/fuzz-varlink.c @@ -85,7 +85,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { struct iovec server_iov = IOVEC_MAKE((void*) data, size), client_iov = IOVEC_MAKE((void*) data, size); /* Important: the declaration order matters here! we want that the fds are closed on return after the * event sources, hence we declare the fds first, the event sources second */ - _cleanup_close_pair_ int server_pair[2] = { -EBADF, -EBADF }, client_pair[2] = { -EBADF, -EBADF }; + _cleanup_close_pair_ int server_pair[2] = PIPE_EBADF, client_pair[2] = PIPE_EBADF; _cleanup_(sd_event_source_unrefp) sd_event_source *idle_event_source = NULL, *server_event_source = NULL, *client_event_source = NULL; _cleanup_(varlink_server_unrefp) VarlinkServer *s = NULL; -- cgit v1.2.3