From e7888531563e663874ef7177b1dc8c74839b4a2e Mon Sep 17 00:00:00 2001 From: cpq Date: Thu, 11 Mar 2021 13:15:53 +0000 Subject: [PATCH] Fix typos --- mongoose.h | 8 ++++---- src/http.h | 2 +- src/net.h | 4 ++-- src/timer.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mongoose.h b/mongoose.h index ac3618d6..864eb7cc 100644 --- a/mongoose.h +++ b/mongoose.h @@ -407,7 +407,7 @@ struct mg_timer { #define MG_TIMER_REPEAT 1 // Call function periodically, otherwise run once #define MG_TIMER_RUN_NOW 2 // Call immediately when timer is set void (*fn)(void *); // Function to call - void *arg; // Function agrument + void *arg; // Function argument unsigned long expire; // Expiration timestamp in milliseconds struct mg_timer *next; // Linkage in g_timers list }; @@ -627,7 +627,7 @@ struct mg_connection { struct mg_iobuf recv; // Incoming data struct mg_iobuf send; // Outgoing data mg_event_handler_t fn; // User-specified event handler function - void *fn_data; // User-speficied function parameter + void *fn_data; // User-specified function parameter mg_event_handler_t pfn; // Protocol-specific handler function void *pfn_data; // Protocol-specific function parameter char label[50]; // Arbitrary label @@ -635,7 +635,7 @@ struct mg_connection { unsigned is_listening : 1; // Listening connection unsigned is_client : 1; // Outbound (client) connection unsigned is_accepted : 1; // Accepted (server) connection - unsigned is_resolving : 1; // Non-blocking DNS resolv is in progress + unsigned is_resolving : 1; // Non-blocking DNS resolution is in progress unsigned is_connecting : 1; // Non-blocking connect is in progress unsigned is_tls : 1; // TLS-enabled connection unsigned is_tls_hs : 1; // TLS handshake is in progress @@ -689,7 +689,7 @@ struct mg_http_message { // Parameter for mg_http_serve_dir() struct mg_http_serve_opts { const char *root_dir; // Web root directory, must be non-NULL - const char *ssi_pattern; // SSI filename pattern, e.g. #.shtml + const char *ssi_pattern; // SSI file name pattern, e.g. #.shtml const char *extra_headers; // Extra HTTP headers to add in responses }; diff --git a/src/http.h b/src/http.h index 6e0ccb03..c7efa525 100644 --- a/src/http.h +++ b/src/http.h @@ -24,7 +24,7 @@ struct mg_http_message { // Parameter for mg_http_serve_dir() struct mg_http_serve_opts { const char *root_dir; // Web root directory, must be non-NULL - const char *ssi_pattern; // SSI filename pattern, e.g. #.shtml + const char *ssi_pattern; // SSI file name pattern, e.g. #.shtml const char *extra_headers; // Extra HTTP headers to add in responses }; diff --git a/src/net.h b/src/net.h index 2dba1367..450e755b 100644 --- a/src/net.h +++ b/src/net.h @@ -38,7 +38,7 @@ struct mg_connection { struct mg_iobuf recv; // Incoming data struct mg_iobuf send; // Outgoing data mg_event_handler_t fn; // User-specified event handler function - void *fn_data; // User-speficied function parameter + void *fn_data; // User-specified function parameter mg_event_handler_t pfn; // Protocol-specific handler function void *pfn_data; // Protocol-specific function parameter char label[50]; // Arbitrary label @@ -46,7 +46,7 @@ struct mg_connection { unsigned is_listening : 1; // Listening connection unsigned is_client : 1; // Outbound (client) connection unsigned is_accepted : 1; // Accepted (server) connection - unsigned is_resolving : 1; // Non-blocking DNS resolv is in progress + unsigned is_resolving : 1; // Non-blocking DNS resolution is in progress unsigned is_connecting : 1; // Non-blocking connect is in progress unsigned is_tls : 1; // TLS-enabled connection unsigned is_tls_hs : 1; // TLS handshake is in progress diff --git a/src/timer.h b/src/timer.h index b1f3576a..ae03bc3a 100644 --- a/src/timer.h +++ b/src/timer.h @@ -6,7 +6,7 @@ struct mg_timer { #define MG_TIMER_REPEAT 1 // Call function periodically, otherwise run once #define MG_TIMER_RUN_NOW 2 // Call immediately when timer is set void (*fn)(void *); // Function to call - void *arg; // Function agrument + void *arg; // Function argument unsigned long expire; // Expiration timestamp in milliseconds struct mg_timer *next; // Linkage in g_timers list };