]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/audit-util.c
audit-util,varlink: use IOVEC_MAKE() in a couple more places
[thirdparty/systemd.git] / src / basic / audit-util.c
index f2dce206b375131f265d17be812996d69193aec9..92479affa3a775dbb16c31a80da31cccf18ff9bc 100644 (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,