[CRIU] [PATCH] restore_pipe_data(): fix a typo
Kir Kolyshkin
kir at openvz.org
Tue Jan 31 03:58:34 EST 2012
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>
---
cr-restore.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cr-restore.c b/cr-restore.c
index 4c94936..3bc3282 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -793,7 +793,7 @@ static int restore_pipe_data(struct pipe_entry *e, int wfd, int pipes_fd)
return -1;
}
- size =+ ret;
+ size += ret;
}
return 0;
--
1.7.4.4
More information about the CRIU
mailing list