X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fprotocols.c;h=e90c1a4e234269edc2b4ab5d497fc55eb309fa3b;hb=66f9d645f883eee0aa408428eefdebdcc6dcfa7e;hp=75e9a1c4782035bbeffcbfc232a9fcb5d3936512;hpb=b423bd090e6a1af51446ad6967d5016045bd6ea5;p=collectd.git diff --git a/src/protocols.c b/src/protocols.c index 75e9a1c4..e90c1a4e 100644 --- a/src/protocols.c +++ b/src/protocols.c @@ -166,7 +166,7 @@ static int read_file (const char *path) if (key_fields_num != value_fields_num) { ERROR ("protocols plugin: Number of fields in keys and values lines " - "dont match: %i vs %i.", + "don't match: %i vs %i.", key_fields_num, value_fields_num); break; } @@ -224,9 +224,7 @@ static int protocols_config (const char *key, const char *value) else if (strcasecmp (key, "IgnoreSelected") == 0) { int invert = 1; - if ((strcasecmp (value, "True") == 0) - || (strcasecmp (value, "Yes") == 0) - || (strcasecmp (value, "On") == 0)) + if (IS_TRUE (value)) invert = 0; ignorelist_set_invert (values_list, invert); }