Commit f682a173 authored by Tim Pambor's avatar Tim Pambor Committed by Dan Kalowsky
Browse files

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: default avatarTim Pambor <tim.pambor@codewrights.de>
parent 6226bb12
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -23,8 +23,12 @@ LOG_MODULE_REGISTER(net_mgmt_sock_sample, LOG_LEVEL_DBG);
#endif

/* A test thread that spits out events that we can catch and show to user */
static void trigger_events(void)
static void trigger_events(void *p1, void *p2, void *p3)
{
	ARG_UNUSED(p1);
	ARG_UNUSED(p2);
	ARG_UNUSED(p3);

	int operation = 0;
	struct net_if_addr *ifaddr_v6;
	struct net_if *iface;
+5 −1
Original line number Diff line number Diff line
@@ -263,8 +263,12 @@ ETH_NET_DEVICE_INIT(eth_fake, "eth_fake", eth_fake_init, NULL,
		    &eth_fake_api_funcs, NET_ETH_MTU);

/* A test thread that spits out events that we can catch and show to user */
static void trigger_events(void)
static void trigger_events(void *p1, void *p2, void *p3)
{
	ARG_UNUSED(p1);
	ARG_UNUSED(p2);
	ARG_UNUSED(p3);

	int operation = 0;
	struct net_if_addr *ifaddr_v6, *ifaddr_v4;
	struct net_if *iface;