[CRIU] [crtools-bot for Kinsbursky Stanislav ] parasite: make it 5 lines shorter

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 29 08:43:20 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit a66eab4ecfb306bb1a47d374d185450a0d6cbd50
Author: Kinsbursky Stanislav <skinsbursky at openvz.org>
Date:   Wed Feb 29 16:39:58 2012 +0300

    parasite: make it 5 lines shorter
    
    Small cleanup patch
    
    Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
    Signed-off-by: Cyrill Gorcunov <gorcunov 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