xiaoxiang781216 commented on code in PR #1707:
URL: https://github.com/apache/nuttx-apps/pull/1707#discussion_r1170459142


##########
examples/pipe/redirect_test.c:
##########
@@ -233,59 +202,32 @@ static int redirect_writer(int argc, char *argv[])
 
 int redirection_test(void)
 {
-  char *argv[3];
-  char buffer1[8];
-  char buffer2[8];
-  int readerid;
-  int writerid;
+  pthread_t readerid, writerid;

Review Comment:
   ```suggestion
     pthread_t readerid;
     pthread_t writerid;
   ```



##########
examples/pipe/interlock_test.c:
##########
@@ -104,7 +148,7 @@ static void *null_writer(pthread_addr_t pvarg)
 
 int interlock_test(void)
 {
-  pthread_t writerid;
+  pthread_t readerid, writerid;

Review Comment:
   ```suggestion
   ```suggestion
     pthread_t writerid;
     pthread_t readerid;
   ``````



-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to