src/t_enospc.c: Fix an error for the loop initialization declaration
authorFeiyu Zhu <zhufy.jy@cn.fujitsu.com>
Thu, 10 Dec 2020 02:59:54 +0000 (21:59 -0500)
committerEryu Guan <guaneryu@gmail.com>
Sun, 20 Dec 2020 16:18:43 +0000 (00:18 +0800)
commit0c5013c565b7fa9af74add55760c4986c6d1d19e
tree2607bcdabb3407ae84243826ab8b363a27c9a4b9
parent62cf7ce77f4fff388d33b68502d2e591e724dda7
src/t_enospc.c: Fix an error for the loop initialization declaration

When I compiled xfstests using the gcc(version 4.8.5), the following error occurred:
t_enospc.c: In function 'enospc_test':
t_enospc.c:88:2: error: 'for' loop initial declarations are only allowed in C99 mode
  for (int i = 0; i < size; i++) {
  ^

Signed-off-by: Feiyu Zhu <zhufy.jy@cn.fujitsu.com>
Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/t_enospc.c