mirror of
https://github.com/systemd/systemd.git
synced 2026-07-14 19:40:32 +00:00
iovec-util: make IOVEC_NULL const
compound initialized structs can be placed im immutable memory if const, hence there's benefit in making this one const too
This commit is contained in:
@@ -32,7 +32,8 @@ static inline bool IOVEC_INCREMENT(struct iovec *i, size_t n, size_t k) {
|
||||
return true;
|
||||
}
|
||||
|
||||
#define IOVEC_NULL (struct iovec) {}
|
||||
#define IOVEC_NULL (const struct iovec) {}
|
||||
|
||||
#define IOVEC_MAKE(base, len) (struct iovec) { .iov_base = (base), .iov_len = (len) }
|
||||
#define IOVEC_MAKE_STRING(string) \
|
||||
({ \
|
||||
|
||||
Reference in New Issue
Block a user