Spelling libnetdata (#10917)
Josh Soref committed
Apr 14, 2021 at 05:27 UTC
faef38c806515e3e314430a6093d8c11c1bd0691
11 files changed
+19
-19
libnetdata/clocks/clocks.h
+2
-2
@@ -112,8 +112,8 @@ extern int clock_gettime(clockid_t clk_id, struct timespec *ts);
112
* All now_*_timeval() functions fill the `struct timeval` with the time from the appropriate clock.
113
* Those functions return 0 on success, -1 else with errno set appropriately.
114
*
115
- * All now_*_sec() functions return the time in seconds from the approriate clock, or 0 on error.
116
- * All now_*_usec() functions return the time in microseconds from the approriate clock, or 0 on error.
115
+ * All now_*_sec() functions return the time in seconds from the appropriate clock, or 0 on error.
116
+ * All now_*_usec() functions return the time in microseconds from the appropriate clock, or 0 on error.
117
*
118
* Most functions will attempt to use CLOCK_MONOTONIC_COARSE if available to reduce contention overhead and improve
119
* performance scaling. If high precision is required please use one of the available now_*_high_precision_* functions.
libnetdata/config/appconfig.c
+1
-1
@@ -302,7 +302,7 @@ int appconfig_move(struct config *root, const char *section_old, const char *nam
302
if(cv_new) goto cleanup;
303
304
if(unlikely(appconfig_option_index_del(co_old, cv_old) != cv_old))
305
- error("INTERNAL ERROR: deletion of config '%s' from section '%s', deleted tge wrong config entry.", cv_old->name, co_old->name);
305
+ error("INTERNAL ERROR: deletion of config '%s' from section '%s', deleted the wrong config entry.", cv_old->name, co_old->name);
306
307
if(co_old->values == cv_old) {
308
co_old->values = cv_old->next;
libnetdata/config/appconfig.h
+1
-1
@@ -131,7 +131,7 @@ struct section {
131
132
char *name;
133
134
- struct section *next; // gloabl config_mutex protects just this
134
+ struct section *next; // global config_mutex protects just this
135
136
struct config_option *values;
137
avl_tree_lock values_index;
libnetdata/health/health.c
+1
-1
@@ -19,7 +19,7 @@ SILENCER *create_silencer(void) {
19
/**
20
* Health Silencers add
21
*
22
- * Add more one silencer to the list of silenecers.
22
+ * Add more one silencer to the list of silencers.
23
*
24
* @param silencer
25
*/
libnetdata/json/json.c
+3
-3
@@ -82,7 +82,7 @@ jsmntok_t *json_tokenise(char *js, size_t len, size_t *count)
82
/**
83
* Callback Print
84
*
85
- * Set callback print case necesary and wrinte an information inside a buffer to write in the log.
85
+ * Set callback print case necessary and wrinte an information inside a buffer to write in the log.
86
*
87
* @param e a pointer for a structure that has the complete information about json structure.
88
*
@@ -518,8 +518,8 @@ size_t json_walk_tree(char *js, jsmntok_t *t, void *callback_data, int (*callbac
518
* @param callback_data additional data to be used together the callback function
519
* @param callback_function function used to create a silencer.
520
*
521
- * @return JSON_OK case everything happend as expected, JSON_CANNOT_PARSE case there were errors in the
522
- * parsing procces and JSON_CANNOT_DOWNLOAD case the string given(js) is NULL.
521
+ * @return JSON_OK case everything happened as expected, JSON_CANNOT_PARSE case there were errors in the
522
+ * parsing process and JSON_CANNOT_DOWNLOAD case the string given(js) is NULL.
523
*/
524
int json_parse(char *js, void *callback_data, int (*callback_function)(JSON_ENTRY *))
525
{
libnetdata/procfile/procfile.c
+3
-3
@@ -312,9 +312,9 @@ procfile *procfile_readall(procfile *ff) {
312
NOINLINE
313
static void procfile_set_separators(procfile *ff, const char *separators) {
314
static PF_CHAR_TYPE def[256];
315
- static char initilized = 0;
315
+ static char initialized = 0;
316
317
- if(unlikely(!initilized)) {
317
+ if(unlikely(!initialized)) {
318
// this is thread safe
319
// if initialized is zero, multiple threads may be executing
320
// this code at the same time, setting in def[] the exact same values
@@ -330,7 +330,7 @@ static void procfile_set_separators(procfile *ff, const char *separators) {
330
def[i] = PF_CHAR_IS_WORD;
331
}
332
333
- initilized = 1;
333
+ initialized = 1;
334
}
335
336
// copy the default
libnetdata/procfile/procfile.h
+1
-1
@@ -50,7 +50,7 @@ typedef struct {
50
char filename[FILENAME_MAX + 1]; // not populated until profile_filename() is called
51
52
uint32_t flags;
53
- int fd; // the file desriptor
53
+ int fd; // the file descriptor
54
size_t len; // the bytes we have placed into data
55
size_t size; // the bytes we have allocated for data
56
pflines *lines;
libnetdata/socket/security.c
+2
-2
@@ -201,7 +201,7 @@ static SSL_CTX * security_initialize_openssl_server() {
201
* @param selector informs the context that must be initialized, the following list has the valid values:
202
* NETDATA_SSL_CONTEXT_SERVER - the server context
203
* NETDATA_SSL_CONTEXT_STREAMING - Starts the streaming context.
204
- * NETDATA_SSL_CONTEXT_EXPORTING - Starts the OpenTSDB contextv
204
+ * NETDATA_SSL_CONTEXT_EXPORTING - Starts the OpenTSDB context
205
*/
206
void security_start_ssl(int selector) {
207
switch (selector) {
@@ -218,7 +218,7 @@ void security_start_ssl(int selector) {
218
case NETDATA_SSL_CONTEXT_STREAMING: {
219
netdata_client_ctx = security_initialize_openssl_client();
220
//This is necessary for the stream, because it is working sometimes with nonblock socket.
221
- //It returns the bitmask afte to change, there is not any description of errors in the documentation
221
+ //It returns the bitmask after to change, there is not any description of errors in the documentation
222
SSL_CTX_set_mode(netdata_client_ctx, SSL_MODE_ENABLE_PARTIAL_WRITE |SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER |SSL_MODE_AUTO_RETRY);
223
break;
224
}
libnetdata/storage_number/storage_number.h
+1
-1
@@ -62,7 +62,7 @@ typedef uint32_t storage_number;
62
63
#define SN_EXISTS (1 << 24) // the value exists
64
#define SN_EXISTS_RESET (1 << 25) // the value has been overflown
65
-#define SN_EXISTS_100 (1 << 26) // very large value (multipler is 100 instead of 10)
65
+#define SN_EXISTS_100 (1 << 26) // very large value (multiplier is 100 instead of 10)
66
67
// extract the flags
68
#define get_storage_number_flags(value) ((((storage_number)(value)) & (1 << 24)) | (((storage_number)(value)) & (1 << 25)) | (((storage_number)(value)) & (1 << 26)))
libnetdata/storage_number/tests/test_storage_number.c
+2
-2
@@ -5,7 +5,7 @@
5
#include <setjmp.h>
6
#include <cmocka.h>
7
8
-static void test_number_pinting(void **state)
8
+static void test_number_printing(void **state)
9
{
10
(void)state;
11
@@ -45,7 +45,7 @@ static void test_number_pinting(void **state)
45
int main(void)
46
{
47
const struct CMUnitTest tests[] = {
48
- cmocka_unit_test(test_number_pinting)
48
+ cmocka_unit_test(test_number_printing)
49
};
50
51
return cmocka_run_group_tests_name("storage_number", tests, NULL, NULL);
libnetdata/url/url.c
+2
-2
@@ -68,7 +68,7 @@ char url_percent_escape_decode(char *s) {
68
*
69
* @param c is the utf8 character
70
* *
71
- * @return It reurns the length of the specific character.
71
+ * @return It returns the length of the specific character.
72
*/
73
char url_utf8_get_byte_length(char c) {
74
if(!IS_UTF8_BYTE(c))
@@ -226,7 +226,7 @@ char *url_decode_r(char *to, char *url, size_t size) {
226
227
*d = '\0';
228
229
- if(unlikely( utf8_check((unsigned char *)to) )) //NULL means sucess here
229
+ if(unlikely( utf8_check((unsigned char *)to) )) //NULL means success here
230
return NULL;
231
232
return to;