mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
Corrected spelling of ERR_WOULDBLOCK (D was missing)
This commit is contained in:
parent
57594ad7b6
commit
0a49f2e068
@ -1182,7 +1182,7 @@ do_writemore(struct netconn *conn)
|
|||||||
if (dontblock && (err == ERR_MEM)) {
|
if (dontblock && (err == ERR_MEM)) {
|
||||||
/* nonblocking write failed */
|
/* nonblocking write failed */
|
||||||
write_finished = 1;
|
write_finished = 1;
|
||||||
err = ERR_WOULBLOCK;
|
err = ERR_WOULDBLOCK;
|
||||||
/* let poll_tcp check writable space to mark the pcb
|
/* let poll_tcp check writable space to mark the pcb
|
||||||
writable again */
|
writable again */
|
||||||
conn->flags |= NETCONN_FLAG_CHECK_WRITESPACE;
|
conn->flags |= NETCONN_FLAG_CHECK_WRITESPACE;
|
||||||
|
@ -135,7 +135,7 @@ static const int err_to_errno_table[] = {
|
|||||||
EHOSTUNREACH, /* ERR_RTE -4 Routing problem. */
|
EHOSTUNREACH, /* ERR_RTE -4 Routing problem. */
|
||||||
EINPROGRESS, /* ERR_INPROGRESS -5 Operation in progress */
|
EINPROGRESS, /* ERR_INPROGRESS -5 Operation in progress */
|
||||||
EINVAL, /* ERR_VAL -6 Illegal value. */
|
EINVAL, /* ERR_VAL -6 Illegal value. */
|
||||||
EWOULDBLOCK, /* ERR_WOULBLOCK -7 Operation would block. */
|
EWOULDBLOCK, /* ERR_WOULDBLOCK -7 Operation would block. */
|
||||||
ECONNABORTED, /* ERR_ABRT -8 Connection aborted. */
|
ECONNABORTED, /* ERR_ABRT -8 Connection aborted. */
|
||||||
ECONNRESET, /* ERR_RST -9 Connection reset. */
|
ECONNRESET, /* ERR_RST -9 Connection reset. */
|
||||||
ESHUTDOWN, /* ERR_CLSD -10 Connection closed. */
|
ESHUTDOWN, /* ERR_CLSD -10 Connection closed. */
|
||||||
|
@ -56,7 +56,7 @@ typedef s8_t err_t;
|
|||||||
#define ERR_RTE -4 /* Routing problem. */
|
#define ERR_RTE -4 /* Routing problem. */
|
||||||
#define ERR_INPROGRESS -5 /* Operation in progress */
|
#define ERR_INPROGRESS -5 /* Operation in progress */
|
||||||
#define ERR_VAL -6 /* Illegal value. */
|
#define ERR_VAL -6 /* Illegal value. */
|
||||||
#define ERR_WOULBLOCK -7 /* Operation would block. */
|
#define ERR_WOULDBLOCK -7 /* Operation would block. */
|
||||||
|
|
||||||
#define ERR_IS_FATAL(e) ((e) < ERR_VAL)
|
#define ERR_IS_FATAL(e) ((e) < ERR_VAL)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user