#include "audit-util.h"
#include "fd-util.h"
#include "fileio.h"
+#include "io-util.h"
#include "macro.h"
#include "parse-util.h"
#include "process-util.h"
.hdr.nlmsg_type = AUDIT_GET_FEATURE,
.hdr.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK,
};
- iov = (struct iovec) {
- .iov_base = &msg,
- .iov_len = msg.hdr.nlmsg_len,
- };
+ iov = IOVEC_MAKE(&msg, msg.hdr.nlmsg_len);
mh = (struct msghdr) {
.msg_iov = &iov,
.msg_iovlen = 1,
rs = MALLOC_SIZEOF_SAFE(v->input_buffer) - (v->input_buffer_index + v->input_buffer_size);
if (v->allow_fd_passing_input) {
- iov = (struct iovec) {
- .iov_base = p,
- .iov_len = rs,
- };
+ iov = IOVEC_MAKE(p, rs);
mh = (struct msghdr) {
.msg_iov = &iov,
.msg_iovlen = 1,