[lxc-devel] [PATCH] fix clone prototype

Dwight Engen dwight.engen at oracle.com
Thu Oct 10 16:59:04 UTC 2013


gcc was complaining with:
reboot.c:33: error: conflicting types for ‘clone’
/usr/include/bits/sched.h:83: note: previous declaration of ‘clone’ was here

Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
---
 src/tests/reboot.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/tests/reboot.c b/src/tests/reboot.c
index 6e12aa4..82fa5b1 100644
--- a/src/tests/reboot.c
+++ b/src/tests/reboot.c
@@ -30,7 +30,7 @@
 #include <linux/sched.h>
 #include <linux/reboot.h>
 
-int clone(int (*fn)(void *), void *child_stack, int flags, void *arg);
+int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ...);
 
 static int do_reboot(void *arg)
 {
-- 
1.7.1





More information about the lxc-devel mailing list