From a294d7da9a9be335dd8bae8bf688ce88fa58a83f Mon Sep 17 00:00:00 2001 From: shandianchengzi <58585665+shandianchengzi@users.noreply.github.com> Date: Thu, 18 May 2023 22:42:44 +0800 Subject: [HUST CSE][example] fix some typo bugs about 'sucess' and others. (#7528) --- components/net/lwip/lwip-1.4.1/src/core/tcp_in.c | 2 +- components/net/lwip/lwip-1.4.1/src/include/lwip/tcp_impl.h | 2 +- components/net/lwip/lwip-2.0.3/doc/mqtt_client.txt | 2 +- components/net/lwip/lwip-2.1.2/doc/mqtt_client.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'components/net') 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) { -- cgit v1.3.1