mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
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:
parent
7fbb5fc82a
commit
b24e5cd1c8
@ -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 */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user