X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.c;h=bc69a3b7fc47d2279f63b0d148b210f525bcf825;hb=0d5c879672770e3b8a740727fb223a6febdeaa27;hp=576abef48c7110575d3a7452008c4a28970db3c4;hpb=3f391479bfc45d0ff6e0c7b87c899e41a192f392;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));