You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/02 14:36:56 UTC

[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #1119: fs/epoll: fix compile break about change type of pollevent_t

xiaoxiang781216 commented on a change in pull request #1119:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1119#discussion_r841083518



##########
File path: examples/poll/poll_listener.c
##########
@@ -91,18 +91,18 @@ void *poll_listener(pthread_addr_t pvarg)
 
   printf("poll_listener: Opening %s for non-blocking read\n", FIFO_PATH1);
 
-  fd = open(FIFO_PATH1, O_RDONLY|O_NONBLOCK);
+  fd = open(FIFO_PATH1, O_RDONLY | O_NONBLOCK);
   if (fd < 0)
     {
       printf("poll_listener: ERROR Failed to open FIFO %s: %d\n",
              FIFO_PATH1, errno);
       close(fd);
-      return (void*)-1;
+      return (FAR void *)-1;
     }
 
   /* Loop forever */
 
-  for (;;)
+  while (1)

Review comment:
       for (; ; )




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org