Merge branch 'collectd-4.8'
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 9 Dec 2009 15:51:24 +0000 (16:51 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 9 Dec 2009 15:51:24 +0000 (16:51 +0100)
1  2 
src/protocols.c

diff --combined src/protocols.c
@@@ -166,7 -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,7 -224,9 +224,7 @@@ static int protocols_config (const cha
    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);
    }