X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fntpd.c;h=ecc87c78977dbbdde88e920aa5f6156a1060fc0d;hb=b9530c89d0db0f18ffc9762aee1c2e6e8d35cf20;hp=9d716adc0e0e181f3c965107c32e06670dfa97f4;hpb=658e44d47088aaea3c59fb248336a74fdefe4245;p=collectd.git diff --git a/src/ntpd.c b/src/ntpd.c index 9d716adc..ecc87c78 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -278,9 +278,7 @@ static int ntpd_config (const char *key, const char *value) } else if (strcasecmp (key, "ReverseLookups") == 0) { - if ((strcasecmp (value, "True") == 0) - || (strcasecmp (value, "Yes") == 0) - || (strcasecmp (value, "On") == 0)) + if (IS_TRUE (value)) do_reverse_lookups = 1; else do_reverse_lookups = 0;