mirror of
https://github.com/systemd/systemd
synced 2024-10-15 20:45:09 +00:00
basic/iovec-util: drop TAKE_IOVEC
As suggested in https://github.com/systemd/systemd/pull/29679#discussion_r1368678932.
This commit is contained in:
parent
7dc951ef91
commit
3c9783c7f4
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue