xiaoxiang781216 commented on code in PR #1340:
URL: 
https://github.com/apache/incubator-nuttx-apps/pull/1340#discussion_r992062166


##########
examples/pipe/transfer_test.c:
##########
@@ -70,46 +70,57 @@ static void *transfer_reader(pthread_addr_t pvarg)
   int ndx;
 
   printf("transfer_reader: started\n");
-  for (nbytes = 0, value = 0; nbytes < NREAD_BYTES;)
+  for (nbytes = 0, value = 0; nbytes < NREAD_BYTES; )
     {
       ret = read(fd, buffer, READ_SIZE);
-      if (ret < 0 )
+      if (ret < 0)
         {
-           fprintf(stderr, "transfer_reader: read failed, errno=%d\n", errno);
-           return (void*)1;
+          fprintf(stderr,
+                  "transfer_reader: read failed, errno=%d\n", errno);
+          return (void *)1;

Review Comment:
   ditto



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to