[lxc-devel] [PATCH] fix clone prototype

Serge Hallyn serge.hallyn at ubuntu.com
Thu Oct 10 17:39:02 UTC 2013


Quoting Dwight Engen (dwight.engen at oracle.com):
> 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>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.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
> 
> 
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel




More information about the lxc-devel mailing list