Skip to content

Commit 61e12a4

Browse files
aescolarjhedberg
authored andcommitted
drivers: wifi: eswifi: Fix callback prototype
net_tcp_accept_cb_t takes a socklen_t as 3rd argument, which type was changed in c546c1c and is not anymore equivalent to size_t. So let's correct it. As a freebie, let's define that function as static as it is. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent d4094d4 commit 61e12a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/wifi/eswifi/eswifi_socket_offload.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ static int eswifi_socket_listen(void *obj, int backlog)
106106
return ret;
107107
}
108108

109-
void __eswifi_socket_accept_cb(struct net_context *context, struct sockaddr *addr,
110-
size_t len, int val, void *data)
109+
static void __eswifi_socket_accept_cb(struct net_context *context, struct sockaddr *addr,
110+
socklen_t len, int val, void *data)
111111
{
112112
struct sockaddr *addr_target = data;
113113

0 commit comments

Comments
 (0)