This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new fd9792b4bd net: use NXRMUTEX_INITIALIZER for rmutex init
fd9792b4bd is described below
commit fd9792b4bdc918d0c196cc0cfa1e3fc0a0c7106f
Author: zhangyuan21 <[email protected]>
AuthorDate: Fri Mar 10 08:14:35 2023 +0800
net: use NXRMUTEX_INITIALIZER for rmutex init
Signed-off-by: zhangyuan21 <[email protected]>
---
net/route/net_fileroute.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/route/net_fileroute.c b/net/route/net_fileroute.c
index 1b35179ff6..9d61a917c9 100644
--- a/net/route/net_fileroute.c
+++ b/net/route/net_fileroute.c
@@ -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
/****************************************************************************