[CRIU] [PATCH 1/5] crtools: open_image_ro() fix
Kinsbursky Stanislav
skinsbursky at openvz.org
Fri Mar 23 10:41:47 EDT 2012
From: Stanislav Kinsbursky <skinsbursky at openvz.org>
Without this fix compiler will generate error in case of pid is not passed
Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
---
include/crtools.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/include/crtools.h b/include/crtools.h
index 90eec0d..60cea96 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -102,7 +102,7 @@ extern int open_image_dir(void);
extern void close_image_dir(void);
int open_image(int type, unsigned long flags, ...);
-#define open_image_ro(type, ...) open_image(type, O_RDONLY, __VA_ARGS__);
+#define open_image_ro(type, ...) open_image(type, O_RDONLY, ##__VA_ARGS__)
extern int open_image_ro_nocheck(const char *fmt, int pid);
#define LAST_PID_PATH "/proc/sys/kernel/ns_last_pid"
More information about the CRIU
mailing list