mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
[HUST CSE][example] fix some typo bugs about 'sucess' and others. (#7528)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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. */
|
||||
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user