mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 07:28:38 +08:00
net: use NXRMUTEX_INITIALIZER for rmutex init
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
443c4c46b0
commit
fd9792b4bd
1 changed files with 2 additions and 2 deletions
|
@ -56,13 +56,13 @@
|
|||
#ifdef CONFIG_ROUTE_IPv4_FILEROUTE
|
||||
/* Used to lock a routing table for exclusive write-only access */
|
||||
|
||||
static rmutex_t g_ipv4_lock = RMUTEX_INITIALIZER;
|
||||
static rmutex_t g_ipv4_lock = NXRMUTEX_INITIALIZER;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ROUTE_IPv6_FILEROUTE
|
||||
/* Used to lock a routing table for exclusive write-only access */
|
||||
|
||||
static rmutex_t g_ipv6_lock = RMUTEX_INITIALIZER;
|
||||
static rmutex_t g_ipv6_lock = NXRMUTEX_INITIALIZER;
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in a new issue