summaryrefslogtreecommitdiffstats
path: root/aclk
diff options
context:
space:
mode:
authorDimitris Apostolou <dimitris.apostolou@icloud.com>2021-11-16 09:18:43 +0200
committerGitHub <noreply@github.com>2021-11-16 10:18:43 +0300
commitacca8c24f229da0ff0238921ebc4b30ddc7125ea (patch)
tree93113595d01b209c62167aa7d0ccaf05bb665218 /aclk
parent97a13e03612b0d4f2908be57b5114d619626f66d (diff)
Fix typos (#11782)
Co-authored-by: ilyam8 <ilya@netdata.cloud>
Diffstat (limited to 'aclk')
-rw-r--r--aclk/aclk.c2
-rw-r--r--aclk/aclk.h2
-rw-r--r--aclk/aclk_collector_list.c2
-rw-r--r--aclk/aclk_collector_list.h2
-rw-r--r--aclk/aclk_otp.c6
-rw-r--r--aclk/aclk_tx_msgs.c4
-rw-r--r--aclk/https_client.c2
-rw-r--r--aclk/legacy/aclk_common.h2
-rw-r--r--aclk/legacy/aclk_lws_wss_client.h2
-rw-r--r--aclk/legacy/agent_cloud_link.c2
10 files changed, 13 insertions, 13 deletions
diff --git a/aclk/aclk.c b/aclk/aclk.c
index 801fcaa5d2..9b6a8c3a34 100644
--- a/aclk/aclk.c
+++ b/aclk/aclk.c
@@ -505,7 +505,7 @@ static unsigned long aclk_reconnect_delay() {
return aclk_tbeb_delay(0, aclk_env->backoff.base, aclk_env->backoff.min_s, aclk_env->backoff.max_s);
}
-/* Block till aclk_reconnect_delay is satisifed or netdata_exit is signalled
+/* Block till aclk_reconnect_delay is satisfied or netdata_exit is signalled
* @return 0 - Go ahead and connect (delay expired)
* 1 - netdata_exit
*/
diff --git a/aclk/aclk.h b/aclk/aclk.h
index 87fe9d6622..444de86bec 100644
--- a/aclk/aclk.h
+++ b/aclk/aclk.h
@@ -25,7 +25,7 @@ extern struct aclk_shared_state {
time_t last_popcorn_interrupt;
// To wait for `disconnect` message PUBACK
- // when shuting down
+ // when shutting down
// at the same time if > 0 we know link is
// shutting down
int mqtt_shutdown_msg_id;
diff --git a/aclk/aclk_collector_list.c b/aclk/aclk_collector_list.c
index a251a23a84..2920c9a5c8 100644
--- a/aclk/aclk_collector_list.c
+++ b/aclk/aclk_collector_list.c
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
-// This is copied from Legacy ACLK, Original Autor: amoss
+// This is copied from Legacy ACLK, Original Author: amoss
// TODO unmess this
diff --git a/aclk/aclk_collector_list.h b/aclk/aclk_collector_list.h
index 7d83a70eab..09c06b14a0 100644
--- a/aclk/aclk_collector_list.h
+++ b/aclk/aclk_collector_list.h
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
-// This is copied from Legacy ACLK, Original Autor: amoss
+// This is copied from Legacy ACLK, Original Author: amoss
// TODO unmess this
diff --git a/aclk/aclk_otp.c b/aclk/aclk_otp.c
index 4248fc1082..385e22e999 100644
--- a/aclk/aclk_otp.c
+++ b/aclk/aclk_otp.c
@@ -209,7 +209,7 @@ static int parse_passwd_response(const char *json_str, struct auth_data *auth) {
json = json_tokener_parse(json_str);
if (!json) {
- error("JSON-C failed to parse the payload of http respons of /env endpoint");
+ error("JSON-C failed to parse the payload of http response of /env endpoint");
return 1;
}
@@ -359,7 +359,7 @@ static int aclk_parse_otp_error(const char *json_str) {
json = json_tokener_parse(json_str);
if (!json) {
- error("JSON-C failed to parse the payload of http respons of /env endpoint");
+ error("JSON-C failed to parse the payload of http response of /env endpoint");
return 1;
}
@@ -730,7 +730,7 @@ static int parse_json_env(const char *json_str, aclk_env_t *env) {
json = json_tokener_parse(json_str);
if (!json) {
- error("JSON-C failed to parse the payload of http respons of /env endpoint");
+ error("JSON-C failed to parse the payload of http response of /env endpoint");
return 1;
}
diff --git a/aclk/aclk_tx_msgs.c b/aclk/aclk_tx_msgs.c
index 279d3f37f3..237c1bdd24 100644
--- a/aclk/aclk_tx_msgs.c
+++ b/aclk/aclk_tx_msgs.c
@@ -20,7 +20,7 @@ static void aclk_send_message_subtopic(mqtt_wss_client client, json_object *msg,
const char *topic = aclk_get_topic(subtopic);
if (unlikely(!topic)) {
- error("Couldn't get topic. Aborting mesage send");
+ error("Couldn't get topic. Aborting message send");
return;
}
@@ -74,7 +74,7 @@ static uint16_t aclk_send_message_subtopic_pid(mqtt_wss_client client, json_obje
const char *topic = aclk_get_topic(subtopic);
if (unlikely(!topic)) {
- error("Couldn't get topic. Aborting mesage send");
+ error("Couldn't get topic. Aborting message send");
return 0;
}
diff --git a/aclk/https_client.c b/aclk/https_client.c
index 0f08516a9b..470c3fdf3e 100644
--- a/aclk/https_client.c
+++ b/aclk/https_client.c
@@ -606,7 +606,7 @@ static int parse_host_port(url_t *url) {
error(URL_PARSER_LOG_PREFIX ": specified but no port number");
return 1;
}
- if (port_len > 5 /* MAX port lenght is 5digit long in decimal */) {
+ if (port_len > 5 /* MAX port length is 5digit long in decimal */) {
error(URL_PARSER_LOG_PREFIX "port # is too long");
return 1;
}
diff --git a/aclk/legacy/aclk_common.h b/aclk/legacy/aclk_common.h
index c5e14b153f..080680ff11 100644
--- a/aclk/legacy/aclk_common.h
+++ b/aclk/legacy/aclk_common.h
@@ -34,7 +34,7 @@ extern netdata_mutex_t legacy_aclk_shared_state_mutex;
#define ACLK_IS_HOST_POPCORNING(host) (ACLK_IS_HOST_INITIALIZING(host) && host->aclk_state.t_last_popcorn_update)
extern struct legacy_aclk_shared_state {
- // optimization to avoid looping trough hosts
+ // optimization to avoid looping through hosts
// every time Query Thread wakes up
RRDHOST *next_popcorn_host;
diff --git a/aclk/legacy/aclk_lws_wss_client.h b/aclk/legacy/aclk_lws_wss_client.h
index eb99ee0248..c68649cf33 100644
--- a/aclk/legacy/aclk_lws_wss_client.h
+++ b/aclk/legacy/aclk_lws_wss_client.h
@@ -58,7 +58,7 @@ struct aclk_lws_wss_engine_instance {
struct lws_wss_packet_buffer *write_buffer_head;
struct lws_ring *read_ringbuffer;
- //flags to be readed by engine user
+ //flags to be read by engine user
int websocket_connection_up;
// currently this is by default disabled
diff --git a/aclk/legacy/agent_cloud_link.c b/aclk/legacy/agent_cloud_link.c
index 919a40ca0c..80ca239718 100644
--- a/aclk/legacy/agent_cloud_link.c
+++ b/aclk/legacy/agent_cloud_link.c
@@ -222,7 +222,7 @@ char *get_topic(char *sub_topic, char *final_topic, int max_size)
return final_topic;
}
-/* Avoids the need to scan trough all RRDHOSTS
+/* Avoids the need to scan through all RRDHOSTS
* every time any Query Thread Wakes Up
* (every time we need to check child popcorn expiry)
* call with legacy_aclk_shared_state_LOCK held