fixed compiling netconn_write_partly with LWIP_SO_SNDTIMEO==1 after recent api implementation changes (bug #47436, patch by William Hayes)

This commit is contained in:
sg 2016-03-17 20:15:22 +01:00
parent 7fbb5fc82a
commit b24e5cd1c8

View File

@ -708,9 +708,9 @@ netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size,
if (conn->send_timeout != 0) { if (conn->send_timeout != 0) {
/* get the time we started, which is later compared to /* get the time we started, which is later compared to
sys_now() + conn->send_timeout */ 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 { } 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 */ #endif /* LWIP_SO_SNDTIMEO */