diff options
| author | shandianchengzi <[email protected]> | 2023-05-18 22:42:44 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-18 10:42:44 -0400 |
| commit | a294d7da9a9be335dd8bae8bf688ce88fa58a83f (patch) | |
| tree | 0b7c21221e70be410523a04a3891ad70650fabe3 /components/net | |
| parent | c349fe68b8046a54aa33cdfd7471a6e2effe7cae (diff) | |
[HUST CSE][example] fix some typo bugs about 'sucess' and others. (#7528)
Diffstat (limited to 'components/net')
4 files changed, 4 insertions, 4 deletions
diff --git a/components/net/lwip/lwip-1.4.1/src/core/tcp_in.c b/components/net/lwip/lwip-1.4.1/src/core/tcp_in.c index 4ec971ac0f..dc2a59444d 100644 --- a/components/net/lwip/lwip-1.4.1/src/core/tcp_in.c +++ b/components/net/lwip/lwip-1.4.1/src/core/tcp_in.c @@ -665,7 +665,7 @@ tcp_process(struct tcp_pcb *pcb) pcb->nrtx = 0; } - /* Call the user specified function to call when sucessfully + /* Call the user specified function to call when successfully * connected. */ TCP_EVENT_CONNECTED(pcb, ERR_OK, err); if (err == ERR_ABRT) { diff --git a/components/net/lwip/lwip-1.4.1/src/include/lwip/tcp_impl.h b/components/net/lwip/lwip-1.4.1/src/include/lwip/tcp_impl.h index 173de44e44..4c2c8baec7 100644 --- a/components/net/lwip/lwip-1.4.1/src/include/lwip/tcp_impl.h +++ b/components/net/lwip/lwip-1.4.1/src/include/lwip/tcp_impl.h @@ -186,7 +186,7 @@ PACK_STRUCT_END /** Flags used on input processing, not on pcb->flags */ #define TF_RESET (u8_t)0x08U /* Connection was reset. */ -#define TF_CLOSED (u8_t)0x10U /* Connection was sucessfully closed. */ +#define TF_CLOSED (u8_t)0x10U /* Connection was successfully closed. */ #define TF_GOT_FIN (u8_t)0x20U /* Connection was closed by the remote end. */ diff --git a/components/net/lwip/lwip-2.0.3/doc/mqtt_client.txt b/components/net/lwip/lwip-2.0.3/doc/mqtt_client.txt index 3e67defdc5..9d2ed0d767 100644 --- a/components/net/lwip/lwip-2.0.3/doc/mqtt_client.txt +++ b/components/net/lwip/lwip-2.0.3/doc/mqtt_client.txt @@ -148,7 +148,7 @@ void example_publish(mqtt_client_t *client, void *arg) } } -/* Called when publish is complete either with sucess or failure */ +/* Called when publish is complete either with success or failure */ static void mqtt_pub_request_cb(void *arg, err_t result) { if(result != ERR_OK) { diff --git a/components/net/lwip/lwip-2.1.2/doc/mqtt_client.txt b/components/net/lwip/lwip-2.1.2/doc/mqtt_client.txt index 7fd93a8edf..81c6d20abd 100644 --- a/components/net/lwip/lwip-2.1.2/doc/mqtt_client.txt +++ b/components/net/lwip/lwip-2.1.2/doc/mqtt_client.txt @@ -148,7 +148,7 @@ void example_publish(mqtt_client_t *client, void *arg) } } -/* Called when publish is complete either with sucess or failure */ +/* Called when publish is complete either with success or failure */ static void mqtt_pub_request_cb(void *arg, err_t result) { if(result != ERR_OK) { |
