1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Fix some spelling mistakes

Thanks, codespell!
This commit is contained in:
Lars Kruse 2021-04-05 23:24:50 +02:00
parent a1e346bcb7
commit 2c9121708a
22 changed files with 31 additions and 31 deletions

View file

@ -76,7 +76,7 @@ V17.0214
V17.0124
not pubish, first version
not published, first version
=head1 AUTHOR

View file

@ -17,7 +17,7 @@
static char getitem(char *input, unsigned char item, char *output)
{
unsigned char i = 0;
unsigned char seperators = 0;
unsigned char separators = 0;
char know_this_seperator = 0;
unsigned char start = 0;
unsigned char stop = 0;
@ -28,23 +28,23 @@ static char getitem(char *input, unsigned char item, char *output)
}
/* If we're requested to return the very first item... */
if (seperators == item) {
if (separators == item) {
start = i;
}
while (input[i] && seperators < item + 1) {
while (input[i] && separators < item + 1) {
if (input[i] == ' ') {
if (know_this_seperator == 0) {
know_this_seperator = 1;
seperators++;
if (seperators == item + 1) {
separators++;
if (separators == item + 1) {
stop = i;
break;
}
}
} else if (know_this_seperator) {
know_this_seperator = 0;
if (seperators == item) {
if (separators == item) {
start = i;
}
} else if (input[i] == '\n') {