tree-wide: use IOVEC_MAKE() at many places
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
eaf6369769
commit
5cfa2c3dc0
@@ -20,6 +20,7 @@
|
||||
#include "alloc-util.h"
|
||||
#include "fd-util.h"
|
||||
#include "format-util.h"
|
||||
#include "io-util.h"
|
||||
#include "socket-util.h"
|
||||
#include "strxcpyx.h"
|
||||
#include "udev-ctrl.h"
|
||||
@@ -344,8 +345,7 @@ struct udev_ctrl_msg *udev_ctrl_receive_msg(struct udev_ctrl_connection *conn) {
|
||||
break;
|
||||
}
|
||||
|
||||
iov.iov_base = &uctrl_msg->ctrl_msg_wire;
|
||||
iov.iov_len = sizeof(struct udev_ctrl_msg_wire);
|
||||
iov = IOVEC_MAKE(&uctrl_msg->ctrl_msg_wire, sizeof(struct udev_ctrl_msg_wire));
|
||||
|
||||
size = recvmsg(conn->sock, &smsg, 0);
|
||||
if (size < 0) {
|
||||
|
||||
Reference in New Issue
Block a user