summaryrefslogtreecommitdiff
path: root/src/fuzz
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/fuzz
parentf26c38edfa8bb74cd7fb54bd7ab268f3013bd150 (diff)
downloadsystemd-19ee48a6c29a03f6475689667b5c625a41589e72.tar.gz
tree-wide: introduce PIPE_EBADF macro
Diffstat (limited to 'src/fuzz')
-rw-r--r--src/fuzz/fuzz-varlink.c2
1 files changed, 1 insertions, 1 deletions
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;