diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-06 09:25:14 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-06 09:30:28 +0900 |
commit | ce16d177ddaa6b9fe1f4a40243185bf18ac1915e (patch) | |
tree | cc0b0f3c334f5944f6089fd06b883869e7db3a03 /src/portable | |
parent | a0229fb14d8df6883f6b9e30a1299d08e668f6a2 (diff) | |
download | systemd-ce16d177ddaa6b9fe1f4a40243185bf18ac1915e.tar.gz |
tree-wide: replace IOVEC_INIT with IOVEC_MAKE
We use gnu11 to build, hence we can use structured initializer with
casting, and it is not necessary to use different patterns on
initialization and assignment.
Addresses https://github.com/systemd/systemd/pull/26560#discussion_r1118875447.
Diffstat (limited to 'src/portable')
-rw-r--r-- | src/portable/portable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c index 377e1a9937..eb807b0eb7 100644 --- a/src/portable/portable.c +++ b/src/portable/portable.c @@ -434,7 +434,7 @@ static int portable_extract_by_path( * identical to NAME_MAX. For now we use that, but this should be updated one day when the final * limit is known. */ char iov_buffer[PATH_MAX + NAME_MAX + 2]; - struct iovec iov = IOVEC_INIT(iov_buffer, sizeof(iov_buffer)); + struct iovec iov = IOVEC_MAKE(iov_buffer, sizeof(iov_buffer)); ssize_t n = receive_one_fd_iov(seq[0], &iov, 1, 0, &fd); if (n == -EIO) |