Spelling daemon (#10913)
Josh Soref committed
Apr 14, 2021 at 05:31 UTC
963ed4a178592a4f80d7cc71a6d0e8cc6ee4b89b
4 files changed
+9
-9
daemon/common.h
+1
-1
@@ -77,7 +77,7 @@
77
// netdata agent spawn server
78
#include "spawn/spawn.h"
79
80
-// the netdata deamon
80
+// the netdata daemon
81
#include "daemon.h"
82
#include "main.h"
83
#include "signals.h"
daemon/main.c
+6
-6
@@ -921,7 +921,7 @@ int main(int argc, char **argv) {
921
// set the name for logging
922
program_name = "netdata";
923
924
- // parse depercated options
924
+ // parse deprecated options
925
// TODO: Remove this block with the next major release.
926
{
927
i = 1;
@@ -1107,21 +1107,21 @@ int main(int argc, char **argv) {
1107
return 1;
1108
}
1109
1110
- const char *heystack = argv[optind];
1110
+ const char *haystack = argv[optind];
1111
const char *needle = argv[optind + 1];
1112
size_t len = strlen(needle) + 1;
1113
char wildcarded[len];
1114
1115
- SIMPLE_PATTERN *p = simple_pattern_create(heystack, NULL, SIMPLE_PATTERN_EXACT);
1115
+ SIMPLE_PATTERN *p = simple_pattern_create(haystack, NULL, SIMPLE_PATTERN_EXACT);
1116
int ret = simple_pattern_matches_extract(p, needle, wildcarded, len);
1117
simple_pattern_free(p);
1118
1119
if(ret) {
1120
- fprintf(stdout, "RESULT: MATCHED - pattern '%s' matches '%s', wildcarded '%s'\n", heystack, needle, wildcarded);
1120
+ fprintf(stdout, "RESULT: MATCHED - pattern '%s' matches '%s', wildcarded '%s'\n", haystack, needle, wildcarded);
1121
return 0;
1122
}
1123
else {
1124
- fprintf(stdout, "RESULT: NOT MATCHED - pattern '%s' does not match '%s', wildcarded '%s'\n", heystack, needle, wildcarded);
1124
+ fprintf(stdout, "RESULT: NOT MATCHED - pattern '%s' does not match '%s', wildcarded '%s'\n", haystack, needle, wildcarded);
1125
return 1;
1126
}
1127
}
@@ -1438,7 +1438,7 @@ int main(int argc, char **argv) {
1438
1439
netdata_threads_init_after_fork((size_t)config_get_number(CONFIG_SECTION_GLOBAL, "pthread stack size", (long)default_stacksize));
1440
1441
- // initialyze internal registry
1441
+ // initialize internal registry
1442
registry_init();
1443
// fork the spawn server
1444
spawn_init();
daemon/signals.c
+1
-1
@@ -44,7 +44,7 @@ static void signal_handler(int signo) {
44
45
if(signals_waiting[i].action == NETDATA_SIGNAL_FATAL) {
46
char buffer[200 + 1];
47
- snprintfz(buffer, 200, "\nSIGNAL HANLDER: received: %s. Oops! This is bad!\n", signals_waiting[i].name);
47
+ snprintfz(buffer, 200, "\nSIGNAL HANDLER: received: %s. Oops! This is bad!\n", signals_waiting[i].name);
48
if(write(STDERR_FILENO, buffer, strlen(buffer)) == -1) {
49
// nothing to do - we cannot write but there is no way to complain about it
50
;
daemon/unit_test.c
+1
-1
@@ -1515,7 +1515,7 @@ static RRDHOST *dbengine_rrdhost_find_or_create(char *name)
1515
);
1516
}
1517
1518
-// costants for test_dbengine
1518
+// constants for test_dbengine
1519
static const int CHARTS = 64;
1520
static const int DIMS = 16; // That gives us 64 * 16 = 1024 metrics
1521
#define REGIONS (3) // 3 regions of update_every