[lxc-devel] [PATCH] fix clone prototype
Stéphane Graber
stgraber at ubuntu.com
Thu Oct 10 17:42:27 UTC 2013
On Thu, Oct 10, 2013 at 12:59:04PM -0400, Dwight Engen wrote:
> 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: Stéphane Graber <stgraber 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
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20131010/1227d1fa/attachment.pgp>
More information about the lxc-devel
mailing list