diff options
author | Frantisek Sumsal <fsumsal@redhat.com> | 2023-06-15 20:45:32 +0200 |
---|---|---|
committer | Frantisek Sumsal <fsumsal@redhat.com> | 2023-06-15 20:58:24 +0200 |
commit | 0347b9fdaa17a58280ef4762b0a21ea058e98fae (patch) | |
tree | 8f9a5cd21df6aa4d29df5085ab7b74024fa2dc98 /src/basic/audit-util.c | |
parent | tree-wide: fix a couple of typos (diff) | |
download | systemd-0347b9fdaa17a58280ef4762b0a21ea058e98fae.tar.xz systemd-0347b9fdaa17a58280ef4762b0a21ea058e98fae.zip |
audit-util,varlink: use IOVEC_MAKE() in a couple more places
Diffstat (limited to 'src/basic/audit-util.c')
-rw-r--r-- | src/basic/audit-util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/basic/audit-util.c b/src/basic/audit-util.c index f2dce206b3..92479affa3 100644 --- a/src/basic/audit-util.c +++ b/src/basic/audit-util.c @@ -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, |