From: Sami Kerola Date: Sat, 10 Sep 2011 14:48:12 +0000 (+0200) Subject: column: fix error reported by smatch X-Git-Tag: v2.21-rc1~431^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a41edfa5bb215fb878d5f7e68951fe39c2ad515;p=thirdparty%2Futil-linux.git column: fix error reported by smatch column.c:201:2: error: 'for' loop initial declarations are only allowed in C99 mode Signed-off-by: Sami Kerola --- diff --git a/text-utils/column.c b/text-utils/column.c index 1e7a5779d0..f8fd350718 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -106,6 +106,7 @@ int main(int argc, char **argv) { struct winsize win; int ch, tflag = 0, xflag = 0; + int i; long termwidth = 80; int entries = 0; /* number of records */ unsigned int eval = 0; /* exit value */ @@ -198,7 +199,7 @@ int main(int argc, char **argv) else r_columnate(maxlength, termwidth, list, entries); - for (int i = 0; i < entries; i++) + for (i = 0; i < entries; i++) free(list[i]); free(list);