Add void *param to loopback functions

pull/6032/head
Jarno Lamsa 2018-02-09 13:58:56 +02:00
parent 34099ba294
commit fd92fe1906
2 changed files with 6 additions and 6 deletions

View File

@ -77,7 +77,7 @@ static void enet_tasklet_main(arm_event_s *event);
static void enet_tasklet_network_state_changed(mesh_connection_status_t status);
static void enet_tasklet_parse_network_event(arm_event_s *event);
static void enet_tasklet_configure_and_connect_to_network(void);
static void enet_tasklet_poll_network_status();
static void enet_tasklet_poll_network_status(void *param);
/*
* \brief A function which will be eventually called by NanoStack OS when ever the OS has an event to deliver.
* @param event, describes the sender, receiver and event type.
@ -148,7 +148,7 @@ void enet_tasklet_parse_network_event(arm_event_s *event)
if (tasklet_data_ptr->tasklet_state != TASKLET_STATE_BOOTSTRAP_READY) {
tr_info("IPv6 bootstrap ready");
tasklet_data_ptr->tasklet_state = TASKLET_STATE_BOOTSTRAP_READY;
enet_tasklet_poll_network_status();
enet_tasklet_poll_network_status(NULL);
}
break;
case ARM_NWK_IP_ADDRESS_ALLOCATION_FAIL:
@ -177,7 +177,7 @@ void enet_tasklet_parse_network_event(arm_event_s *event)
}
}
static void enet_tasklet_poll_network_status(void)
static void enet_tasklet_poll_network_status(void *param)
{
/* Check if we do have an IP */
uint8_t temp_ipv6[16];

View File

@ -91,7 +91,7 @@ void thread_tasklet_main(arm_event_s *event);
void thread_tasklet_network_state_changed(mesh_connection_status_t status);
void thread_tasklet_parse_network_event(arm_event_s *event);
void thread_tasklet_configure_and_connect_to_network(void);
void thread_tasklet_poll_network_status();
void thread_tasklet_poll_network_status(void *param);
#define TRACE_THREAD_TASKLET
#ifndef TRACE_THREAD_TASKLET
#define thread_tasklet_trace_bootstrap_info() ((void) 0)
@ -181,7 +181,7 @@ void thread_tasklet_parse_network_event(arm_event_s *event)
thread_tasklet_data_ptr->tasklet_state = TASKLET_STATE_BOOTSTRAP_READY;
thread_tasklet_trace_bootstrap_info();
/* We are connected, for Local or Global IP */
thread_tasklet_poll_network_status();
thread_tasklet_poll_network_status(NULL);
}
break;
case ARM_NWK_NWK_SCAN_FAIL:
@ -225,7 +225,7 @@ void thread_tasklet_parse_network_event(arm_event_s *event)
}
}
void thread_tasklet_poll_network_status()
void thread_tasklet_poll_network_status(void *param)
{
/* Check if we do have an IP */
uint8_t temp_ipv6[16];