diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-05-19 12:33:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-05-19 12:33:59 +0000 |
commit | 1ee0c09c5742557e037df5421ca62abddb90ae22 (patch) | |
tree | 71c0fa48bb6d31d036c9badd7e038527f90d1a73 /libnetdata/procfile | |
parent | Releasing debian version 1.30.1-1. (diff) | |
download | netdata-1ee0c09c5742557e037df5421ca62abddb90ae22.tar.xz netdata-1ee0c09c5742557e037df5421ca62abddb90ae22.zip |
Merging upstream version 1.31.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libnetdata/procfile')
-rw-r--r-- | libnetdata/procfile/procfile.c | 6 | ||||
-rw-r--r-- | libnetdata/procfile/procfile.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libnetdata/procfile/procfile.c b/libnetdata/procfile/procfile.c index 4a812baab..9867c19f6 100644 --- a/libnetdata/procfile/procfile.c +++ b/libnetdata/procfile/procfile.c @@ -312,9 +312,9 @@ procfile *procfile_readall(procfile *ff) { NOINLINE static void procfile_set_separators(procfile *ff, const char *separators) { static PF_CHAR_TYPE def[256]; - static char initilized = 0; + static char initialized = 0; - if(unlikely(!initilized)) { + if(unlikely(!initialized)) { // this is thread safe // if initialized is zero, multiple threads may be executing // 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) { def[i] = PF_CHAR_IS_WORD; } - initilized = 1; + initialized = 1; } // copy the default diff --git a/libnetdata/procfile/procfile.h b/libnetdata/procfile/procfile.h index b107358ab..d29adf8e6 100644 --- a/libnetdata/procfile/procfile.h +++ b/libnetdata/procfile/procfile.h @@ -50,7 +50,7 @@ typedef struct { char filename[FILENAME_MAX + 1]; // not populated until profile_filename() is called uint32_t flags; - int fd; // the file desriptor + int fd; // the file descriptor size_t len; // the bytes we have placed into data size_t size; // the bytes we have allocated for data pflines *lines; |