xiaoxiang781216 commented on code in PR #11857:
URL: https://github.com/apache/nuttx/pull/11857#discussion_r1515374787


##########
drivers/pipes/pipe.c:
##########
@@ -207,8 +208,8 @@ static int pipe_register(size_t bufsize, int flags,
 int file_pipe(FAR struct file *filep[2], size_t bufsize, int flags)
 {
   char devname[32];
+  int nonblock = !!(flags & O_NONBLOCK);

Review Comment:
   Because file_vioctl expect int:
   https://github.com/apache/nuttx/blob/master/fs/vfs/fs_ioctl.c#L75
   which is mentioned here:
   https://man.openbsd.org/ioctl.2



-- 
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