From b41093b0200745d079eaceba161ca1dcb831fe47 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 24 Aug 2019 17:51:05 -0600 Subject: [PATCH] fs/procfs/fs_procfsiobinfo.c: Correct use of C11 features in common code. --- fs/procfs/fs_procfsiobinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/procfs/fs_procfsiobinfo.c b/fs/procfs/fs_procfsiobinfo.c index 8c03384e78..38b3197020 100644 --- a/fs/procfs/fs_procfsiobinfo.c +++ b/fs/procfs/fs_procfsiobinfo.c @@ -278,6 +278,7 @@ static ssize_t iobinfo_read(FAR struct file *filep, FAR char *buffer, size_t copysize; size_t totalsize; off_t offset; + int i; finfo("buffer=%p buflen=%d\n", buffer, (int)buflen); @@ -313,7 +314,7 @@ static ssize_t iobinfo_read(FAR struct file *filep, FAR char *buffer, /* Loop through each IOB user printing the usage statistics */ - for (int i = 0; i < IOBUSER_GLOBAL; i++) + for (i = 0; i < IOBUSER_GLOBAL; i++) { if (totalsize < buflen) {