Skip to content

Commit fd92fe1

Browse files
author
Jarno Lamsa
committed
Add void *param to loopback functions
1 parent 34099ba commit fd92fe1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/ethernet_tasklet.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static void enet_tasklet_main(arm_event_s *event);
7777
static void enet_tasklet_network_state_changed(mesh_connection_status_t status);
7878
static void enet_tasklet_parse_network_event(arm_event_s *event);
7979
static void enet_tasklet_configure_and_connect_to_network(void);
80-
static void enet_tasklet_poll_network_status();
80+
static void enet_tasklet_poll_network_status(void *param);
8181
/*
8282
* \brief A function which will be eventually called by NanoStack OS when ever the OS has an event to deliver.
8383
* @param event, describes the sender, receiver and event type.
@@ -148,7 +148,7 @@ void enet_tasklet_parse_network_event(arm_event_s *event)
148148
if (tasklet_data_ptr->tasklet_state != TASKLET_STATE_BOOTSTRAP_READY) {
149149
tr_info("IPv6 bootstrap ready");
150150
tasklet_data_ptr->tasklet_state = TASKLET_STATE_BOOTSTRAP_READY;
151-
enet_tasklet_poll_network_status();
151+
enet_tasklet_poll_network_status(NULL);
152152
}
153153
break;
154154
case ARM_NWK_IP_ADDRESS_ALLOCATION_FAIL:
@@ -177,7 +177,7 @@ void enet_tasklet_parse_network_event(arm_event_s *event)
177177
}
178178
}
179179

180-
static void enet_tasklet_poll_network_status(void)
180+
static void enet_tasklet_poll_network_status(void *param)
181181
{
182182
/* Check if we do have an IP */
183183
uint8_t temp_ipv6[16];

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/thread_tasklet.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void thread_tasklet_main(arm_event_s *event);
9191
void thread_tasklet_network_state_changed(mesh_connection_status_t status);
9292
void thread_tasklet_parse_network_event(arm_event_s *event);
9393
void thread_tasklet_configure_and_connect_to_network(void);
94-
void thread_tasklet_poll_network_status();
94+
void thread_tasklet_poll_network_status(void *param);
9595
#define TRACE_THREAD_TASKLET
9696
#ifndef TRACE_THREAD_TASKLET
9797
#define thread_tasklet_trace_bootstrap_info() ((void) 0)
@@ -181,7 +181,7 @@ void thread_tasklet_parse_network_event(arm_event_s *event)
181181
thread_tasklet_data_ptr->tasklet_state = TASKLET_STATE_BOOTSTRAP_READY;
182182
thread_tasklet_trace_bootstrap_info();
183183
/* We are connected, for Local or Global IP */
184-
thread_tasklet_poll_network_status();
184+
thread_tasklet_poll_network_status(NULL);
185185
}
186186
break;
187187
case ARM_NWK_NWK_SCAN_FAIL:
@@ -225,7 +225,7 @@ void thread_tasklet_parse_network_event(arm_event_s *event)
225225
}
226226
}
227227

228-
void thread_tasklet_poll_network_status()
228+
void thread_tasklet_poll_network_status(void *param)
229229
{
230230
/* Check if we do have an IP */
231231
uint8_t temp_ipv6[16];

0 commit comments

Comments
 (0)