bool iovec_increment(struct iovec *iovec, size_t n, size_t k);
-#define IOVEC_NULL (const struct iovec) {}
-
#define IOVEC_MAKE(base, len) (struct iovec) { .iov_base = (base), .iov_len = (len) }
#define IOVEC_MAKE_STRING(string) \
({ \
IOVEC_MAKE((char*) _s, strlen(_s)); \
})
-#define TAKE_IOVEC(p) TAKE_GENERIC((p), struct iovec, IOVEC_NULL)
+#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 */
static int partition_format_verity_sig(Context *context, Partition *p) {
_cleanup_(json_variant_unrefp) JsonVariant *v = NULL;
- _cleanup_(iovec_done) struct iovec sig = IOVEC_NULL;
+ _cleanup_(iovec_done) struct iovec sig = {};
_cleanup_free_ char *text = NULL, *hint = NULL;
Partition *hp;
uint8_t fp[X509_FINGERPRINT_SIZE];