X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Finterface.c;h=8557cb100457fd073ac0842ed4b1e7b9e9f53a65;hb=3fc5e82f4a1a10008789ea3a2ec215c6a2d6b1ff;hp=fad37dbefdaf6208133e2454da22ac3ef2e263db;hpb=de0fdb208de123fe753c5fcf03533833777a5b4a;p=collectd.git diff --git a/src/interface.c b/src/interface.c index fad37dbe..8557cb10 100644 --- a/src/interface.c +++ b/src/interface.c @@ -99,9 +99,7 @@ static int interface_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 (ignorelist, invert); } @@ -224,7 +222,7 @@ static int interface_read (void) char buffer[1024]; unsigned long long incoming, outgoing; char *device; - + char *dummy; char *fields[16]; int numfields; @@ -250,7 +248,7 @@ static int interface_read (void) if (device[0] == '\0') continue; - + numfields = strsplit (dummy, fields, 16); if (numfields < 11)