On 05/21/2013 01:15 PM, Dwight Engen wrote:
> lxccontainer.c:874:4: error: ‘for’ loop initial declarations are only
> allowed in C99 mode
> 
> Signed-off-by: Dwight Engen <dwight.en...@oracle.com>

Oops, forgot to test-build with that last minute change...

Acked-by: Stéphane Graber <stgra...@ubuntu.com>

> ---
>  src/lxc/lxccontainer.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
> index 7ce25c6..2934afa 100644
> --- a/src/lxc/lxccontainer.c
> +++ b/src/lxc/lxccontainer.c
> @@ -871,7 +871,8 @@ out:
>               count++;
>               temp = realloc(addresses, count * sizeof(*addresses));
>               if (!temp) {
> -                     for (int i = 0; i < count-1; i++)
> +                     int i;
> +                     for (i = 0; i < count-1; i++)
>                               free(addresses[i]);
>                       free(addresses);
>                       return NULL;
> 


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to