conmon: fix c11 for declaration
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
0493e06b73
commit
0ebf110b95
1 changed files with 2 additions and 1 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue