diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-20 02:10:19 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-20 03:12:58 +0100 |
commit | 19ee48a6c29a03f6475689667b5c625a41589e72 (patch) | |
tree | 50ce8e0ca4bc9afaf8b89f5399473350203b898b /src/fuzz | |
parent | fuzz: sort headers (diff) | |
download | systemd-19ee48a6c29a03f6475689667b5c625a41589e72.tar.xz systemd-19ee48a6c29a03f6475689667b5c625a41589e72.zip |
tree-wide: introduce PIPE_EBADF macro
Diffstat (limited to 'src/fuzz')
-rw-r--r-- | src/fuzz/fuzz-varlink.c | 2 |
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; |