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