Commit a66eab4e authored by Kinsbursky Stanislav's avatar Kinsbursky Stanislav Committed by Cyrill Gorcunov

parasite: make it 5 lines shorter

Small cleanup patch
Signed-off-by: 's avatarStanislav Kinsbursky <skinsbursky@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent dc243ccb
......@@ -445,17 +445,12 @@ static int dump_socket_queue(int img_fd, struct sk_queue_item *item, int *err)
while (1) {
struct iovec iov = {
.iov_base = pe->data,
.iov_len = size,
.iov_base = pe->data,
.iov_len = size,
};
struct msghdr msg = {
.msg_name = NULL,
.msg_namelen = 0,
.msg_iov = &iov,
.msg_iovlen = 1,
.msg_control = NULL,
.msg_controllen = 0,
.msg_flags = 0,
.msg_iov = &iov,
.msg_iovlen = 1,
};
*err = pe->length = sys_recvmsg(sock_fd, &msg, MSG_DONTWAIT | MSG_PEEK);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment