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/test/test-data-fd-util.c | |
parent | fuzz: sort headers (diff) | |
download | systemd-19ee48a6c29a03f6475689667b5c625a41589e72.tar.xz systemd-19ee48a6c29a03f6475689667b5c625a41589e72.zip |
tree-wide: introduce PIPE_EBADF macro
Diffstat (limited to 'src/test/test-data-fd-util.c')
-rw-r--r-- | src/test/test-data-fd-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-data-fd-util.c b/src/test/test-data-fd-util.c index d69648842e..c0febec208 100644 --- a/src/test/test-data-fd-util.c +++ b/src/test/test-data-fd-util.c @@ -81,7 +81,7 @@ static void assert_equal_fd(int fd1, int fd2) { TEST(copy_data_fd) { _cleanup_close_ int fd1 = -EBADF, fd2 = -EBADF; - _cleanup_(close_pairp) int sfd[2] = { -EBADF, -EBADF }; + _cleanup_(close_pairp) int sfd[2] = PIPE_EBADF; _cleanup_(sigkill_waitp) pid_t pid = -1; int r; |