]> git.proxmox.com Git - mirror_lxc.git/commitdiff
fix clone prototype
authorDwight Engen <dwight.engen@oracle.com>
Thu, 10 Oct 2013 16:59:04 +0000 (12:59 -0400)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 10 Oct 2013 17:41:31 +0000 (12:41 -0500)
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@oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/tests/reboot.c

index 6e12aa49af5dfb7a480e680d4d0df1f5b3a18774..82fa5b16bb2ef598e9283663c2fb1df6e6a76bf7 100644 (file)
@@ -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)
 {