diff --git a/modules/net/dap_chain_net_node_list.c b/modules/net/dap_chain_net_node_list.c
index 3302f70a57cb0f038f3d458cb0f579c68adbf278..3664ea0e6ed84c7a3cf6678ca162eb5d342fa279 100644
--- a/modules/net/dap_chain_net_node_list.c
+++ b/modules/net/dap_chain_net_node_list.c
@@ -249,7 +249,7 @@ static int dap_chain_net_node_list_wait(struct node_link_request *a_node_list_re
         return pthread_mutex_unlock(&a_node_list_request->wait_mutex), a_node_list_request->response;
     struct timespec l_cond_timeout;
 #ifdef DAP_OS_DARWIN
-    l_cond_timeout = { .tv_sec = a_timeout_ms / 1000 };
+    l_cond_timeout = (struct timespec){ .tv_sec = a_timeout_ms / 1000 };
 #else
     clock_gettime(CLOCK_MONOTONIC, &l_cond_timeout);
     l_cond_timeout.tv_sec += a_timeout_ms / 1000;
@@ -257,7 +257,7 @@ static int dap_chain_net_node_list_wait(struct node_link_request *a_node_list_re
     while (!a_node_list_request->response) {
         switch (
 #ifdef DAP_OS_DARWIN
-            pthread_cond_timedwait_relative_np(&l_node_list_request->wait_cond, &l_node_list_request->wait_mutex, &l_cond_timeout)
+            pthread_cond_timedwait_relative_np(&a_node_list_request->wait_cond, &a_node_list_request->wait_mutex, &l_cond_timeout)
 #else
             pthread_cond_timedwait(&a_node_list_request->wait_cond, &a_node_list_request->wait_mutex, &l_cond_timeout)
 #endif