[CRIU] [PATCH 2/8] parasite: Add SET_PARASITE_STATUS_SUCCESS helper

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 21 15:22:12 EST 2012


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/parasite.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/include/parasite.h b/include/parasite.h
index 59eff7d..30e593e 100644
--- a/include/parasite.h
+++ b/include/parasite.h
@@ -59,6 +59,13 @@ typedef struct  {
 		(st)->line	= __LINE__;		\
 	} while (0)
 
+#define SET_PARASITE_STATUS_SUCCESS(st)			\
+	do {						\
+		(st)->ret	= 0,			\
+		(st)->sys_ret	= 0,			\
+		(st)->line	= __LINE__;		\
+	} while (0)
+
 struct parasite_init_args {
 	parasite_status_t	status;
 
-- 
1.7.7.6



More information about the CRIU mailing list