audit-util,varlink: use IOVEC_MAKE() in a couple more places

This commit is contained in:
Frantisek Sumsal
2023-06-15 20:58:24 +02:00
parent 9a27ef092e
commit 0347b9fdaa
2 changed files with 3 additions and 8 deletions
+2 -4
View File
@@ -10,6 +10,7 @@
#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"
@@ -85,10 +86,7 @@ static int try_audit_request(int fd) {
.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,