[CRIU] [crtools-bot] restore_pipe_data(): fix a typo

Cyrill Gorcunov gorcunov at openvz.org
Tue Jan 31 04:05:29 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 8a6269e490880af6097aa61b2019a3b11977d353
Author: Kir Kolyshkin <kir at openvz.org>
Date:   Tue Jan 31 12:58:34 2012 +0400

    restore_pipe_data(): fix a typo
    
    Found using clang:
    
    cr-restore.c:796:8: error: use of unary operator that may be intended as compound assignment (+=)
                    size =+ ret;
                         ^~
    
    Signed-off-by: Kir Kolyshkin <kir at openvz.org>
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-restore.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index f9ce3d3..d2dd5ea 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -789,7 +789,7 @@ static int restore_pipe_data(struct pipe_entry *e, int wfd, int pipes_fd)
 			return -1;
 		}
 
-		size =+ ret;
+		size += ret;
 	}
 
 	return 0;


More information about the CRIU mailing list