X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.c;h=bc69a3b7fc47d2279f63b0d148b210f525bcf825;hb=0f512f5546c5d45721171d6dc891488b47b601a3;hp=576abef48c7110575d3a7452008c4a28970db3c4;hpb=52f41fed6e32f66f5817a82ae175fd443084f8a3;p=collectd.git diff --git a/src/collectd.c b/src/collectd.c index 576abef4..bc69a3b7 100644 --- a/src/collectd.c +++ b/src/collectd.c @@ -102,9 +102,7 @@ static int init_hostname (void) } str = global_option_get ("FQDNLookup"); - if ((strcasecmp ("false", str) == 0) - || (strcasecmp ("no", str) == 0) - || (strcasecmp ("off", str) == 0)) + if (IS_FALSE (str)) return (0); memset (&ai_hints, '\0', sizeof (ai_hints));