diff options
Diffstat (limited to 'nuttx/net/net_vfcntl.c')
-rw-r--r-- | nuttx/net/net_vfcntl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/net/net_vfcntl.c b/nuttx/net/net_vfcntl.c index 3ea710425..e1f84a419 100644 --- a/nuttx/net/net_vfcntl.c +++ b/nuttx/net/net_vfcntl.c @@ -62,7 +62,7 @@ int net_vfcntl(int sockfd, int cmd, va_list ap) { FAR struct socket *psock = sockfd_socket(sockfd); - irqstate_t flags; + uip_lock_t flags; int err = 0; int ret = 0; @@ -76,7 +76,7 @@ int net_vfcntl(int sockfd, int cmd, va_list ap) /* Interrupts must be disabled in order to perform operations on socket structures */ - flags = irqsave(); + flags = uip_lock(); switch (cmd) { case F_DUPFD: @@ -219,7 +219,7 @@ int net_vfcntl(int sockfd, int cmd, va_list ap) break; } - irqrestore(flags); + uip_unlock(flags); errout: if (err != 0) |