audit-util,varlink: use IOVEC_MAKE() in a couple more places
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user