net: tcp2: Refactor because of timeout overhaul
Convert to use k_timeout_t Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
35dbe1c7d5
commit
edb39cb40c
1 changed files with 4 additions and 1 deletions
|
@ -1007,11 +1007,14 @@ int net_tcp_connect(struct net_context *context,
|
|||
const struct sockaddr *remote_addr,
|
||||
struct sockaddr *local_addr,
|
||||
u16_t remote_port, u16_t local_port,
|
||||
s32_t timeout, net_context_connect_cb_t cb, void *user_data)
|
||||
k_timeout_t timeout, net_context_connect_cb_t cb,
|
||||
void *user_data)
|
||||
{
|
||||
struct tcp *conn;
|
||||
int ret;
|
||||
|
||||
ARG_UNUSED(timeout);
|
||||
|
||||
NET_DBG("context: %p, local: %s, remote: %s", context,
|
||||
log_strdup(tcp_endpoint_to_string((void *)local_addr)),
|
||||
log_strdup(tcp_endpoint_to_string((void *)remote_addr)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue