[CRIU] [PATCH] parasite: make it 5 lines shorter

Kinsbursky Stanislav skinsbursky at openvz.org
Wed Feb 29 08:39:58 EST 2012


Small cleanup patch

Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>

---
 parasite.c |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/parasite.c b/parasite.c
index e012426..be39afa 100644
--- a/parasite.c
+++ b/parasite.c
@@ -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);



More information about the CRIU mailing list