diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-23 05:09:46 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-23 07:09:59 +0100 |
commit | 65e7d565e45ca9b87fb3e978cdb4b850d635cb63 (patch) | |
tree | 5203df6a20e0276c610cf513d08e8705ca7d7359 /src | |
parent | io-util: introduce iovec_array_free() (diff) | |
download | systemd-65e7d565e45ca9b87fb3e978cdb4b850d635cb63.tar.xz systemd-65e7d565e45ca9b87fb3e978cdb4b850d635cb63.zip |
io-util: introduce IOVEC_NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/io-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/io-util.h b/src/basic/io-util.h index e7e78e9121..767c8af8fe 100644 --- a/src/basic/io-util.h +++ b/src/basic/io-util.h @@ -74,6 +74,7 @@ static inline bool FILE_SIZE_VALID_OR_INFINITY(uint64_t l) { } +#define IOVEC_NULL (struct iovec) {} #define IOVEC_INIT(base, len) { .iov_base = (base), .iov_len = (len) } #define IOVEC_MAKE(base, len) (struct iovec) IOVEC_INIT(base, len) #define IOVEC_INIT_STRING(string) IOVEC_INIT((char*) string, strlen(string)) |