basic/iovec-util: drop TAKE_IOVEC

As suggested in
https://github.com/systemd/systemd/pull/29679#discussion_r1368678932.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-10-23 22:23:07 +02:00
parent 7dc951ef91
commit 3c9783c7f4
2 changed files with 1 additions and 3 deletions

View file

@ -19,8 +19,6 @@ bool iovec_increment(struct iovec *iovec, size_t n, size_t k);
IOVEC_MAKE((char*) _s, strlen(_s)); \
})
#define TAKE_IOVEC(p) TAKE_GENERIC((p), struct iovec, {})
static inline void iovec_done(struct iovec *iovec) {
/* A _cleanup_() helper that frees the iov_base in the iovec */
assert(iovec);

View file

@ -4087,7 +4087,7 @@ static int partition_format_verity_hash(
p->new_uuid_is_set = true;
}
p->roothash = TAKE_IOVEC(rh);
p->roothash = TAKE_STRUCT(rh);
return 0;
#else