From 6a41edfa5bb215fb878d5f7e68951fe39c2ad515 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 10 Sep 2011 16:48:12 +0200 Subject: [PATCH] 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 --- text-utils/column.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.2