From 0ebf110b95ba45dec4d871a3fdd3d200039f9134 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Fri, 23 Sep 2016 08:32:32 +0200 Subject: [PATCH] conmon: fix c11 for declaration Signed-off-by: Antonio Murdaca --- conmon/conmon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conmon/conmon.c b/conmon/conmon.c index 0dcf864c..b188a459 100644 --- a/conmon/conmon.c +++ b/conmon/conmon.c @@ -230,7 +230,8 @@ int main(int argc, char *argv[]) /* Copy data back and forth between STDIN and master fd */ while (true) { int ready = epoll_wait(epfd, evlist, MAX_EVENTS, -1); - for (int i = 0; i < ready; i++) { + int i = 0; + for (i = 0; i < ready; i++) { if (evlist[i].events & EPOLLIN) { if (evlist[i].data.fd == STDIN_FILENO) { num_read =