summaryrefslogtreecommitdiff
path: root/nuttx/net/net_vfcntl.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/net_vfcntl.c')
-rw-r--r--nuttx/net/net_vfcntl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/net/net_vfcntl.c b/nuttx/net/net_vfcntl.c
index 0b228b212..88e46ad22 100644
--- a/nuttx/net/net_vfcntl.c
+++ b/nuttx/net/net_vfcntl.c
@@ -125,7 +125,7 @@ int net_vfcntl(int sockfd, int cmd, va_list ap)
{
/* This summarizes the behavior of the NuttX/uIP sockets */
- ret = O_RDWR | O_SYNC | O_RSYNC;
+ ret = O_RDWR | O_SYNC | O_RSYNC;
/* TCP/IP sockets may also be non-blocking if read-ahead is enabled */
@@ -158,11 +158,11 @@ int net_vfcntl(int sockfd, int cmd, va_list ap)
{
if ((mode & O_NONBLOCK) != 0)
{
- psock->s_type |= _SF_NONBLOCK;
+ psock->s_flags |= _SF_NONBLOCK;
}
else
{
- psock->s_type &= ~_SF_NONBLOCK;
+ psock->s_flags &= ~_SF_NONBLOCK;
}
}
#endif