fix minor gcc 4.7.2 error

lxccontainer.c:874:4: error: ‘for’ loop initial declarations are only
allowed in C99 mode

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Dwight Engen 2013-05-21 13:15:53 -04:00 committed by Stéphane Graber
parent ef6e34eec8
commit fca3080f6a

View File

@ -871,7 +871,8 @@ out:
count++; count++;
temp = realloc(addresses, count * sizeof(*addresses)); temp = realloc(addresses, count * sizeof(*addresses));
if (!temp) { if (!temp) {
for (int i = 0; i < count-1; i++) int i;
for (i = 0; i < count-1; i++)
free(addresses[i]); free(addresses[i]);
free(addresses); free(addresses);
return NULL; return NULL;