From b24e5cd1c8303daec083de4f451629ca6a439a0f Mon Sep 17 00:00:00 2001 From: sg Date: Thu, 17 Mar 2016 20:15:22 +0100 Subject: [PATCH] fixed compiling netconn_write_partly with LWIP_SO_SNDTIMEO==1 after recent api implementation changes (bug #47436, patch by William Hayes) --- src/api/api_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/api_lib.c b/src/api/api_lib.c index 15d6b01d..bb5eb079 100644 --- a/src/api/api_lib.c +++ b/src/api/api_lib.c @@ -708,9 +708,9 @@ netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size, if (conn->send_timeout != 0) { /* get the time we started, which is later compared to sys_now() + conn->send_timeout */ - API_MSG_VAR_REF(msg).msg.msg.w.time_started = sys_now(); + API_MSG_VAR_REF(msg).msg.w.time_started = sys_now(); } else { - API_MSG_VAR_REF(msg).msg.msg.w.time_started = 0; + API_MSG_VAR_REF(msg).msg.w.time_started = 0; } #endif /* LWIP_SO_SNDTIMEO */