Skip to content

Commit f682a17

Browse files
tpambordkalowsk
authored andcommitted
net: socket: mgmt: Fix function signature
Update the trigger_events function signature to match the expected k_thread_entry_t type: typedef void (*k_thread_entry_t)(void *p1, void *p2, void *p3); Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
1 parent 6226bb1 commit f682a17

File tree

2 files changed

+10
-2
lines changed
  • samples/net/sockets/net_mgmt/src
  • tests/net/socket/net_mgmt/src

2 files changed

+10
-2
lines changed

samples/net/sockets/net_mgmt/src/main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ LOG_MODULE_REGISTER(net_mgmt_sock_sample, LOG_LEVEL_DBG);
2323
#endif
2424

2525
/* A test thread that spits out events that we can catch and show to user */
26-
static void trigger_events(void)
26+
static void trigger_events(void *p1, void *p2, void *p3)
2727
{
28+
ARG_UNUSED(p1);
29+
ARG_UNUSED(p2);
30+
ARG_UNUSED(p3);
31+
2832
int operation = 0;
2933
struct net_if_addr *ifaddr_v6;
3034
struct net_if *iface;

tests/net/socket/net_mgmt/src/main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,12 @@ ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, NULL,
263263
&eth_fake_api_funcs, NET_ETH_MTU);
264264

265265
/* A test thread that spits out events that we can catch and show to user */
266-
static void trigger_events(void)
266+
static void trigger_events(void *p1, void *p2, void *p3)
267267
{
268+
ARG_UNUSED(p1);
269+
ARG_UNUSED(p2);
270+
ARG_UNUSED(p3);
271+
268272
int operation = 0;
269273
struct net_if_addr *ifaddr_v6, *ifaddr_v4;
270274
struct net_if *iface;

0 commit comments

Comments
 (0)