X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fntpd.c;h=1827dc3e0cbe1863ed4b6258726e47c27ea9c36c;hb=4e89060ceb1a14ec7f9abfe9caa6b0da7e76bd5c;hp=ed3c04227ac086f46bbd8c9c0ef135577d15caf3;hpb=bdaaa0e6e180dd017e3fda1b070f413d4b6e3492;p=collectd.git diff --git a/src/ntpd.c b/src/ntpd.c index ed3c0422..1827dc3e 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -56,12 +56,12 @@ static const char *config_keys[] = {"Host", "Port", "ReverseLookups", "IncludeUnitID"}; static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); -static _Bool do_reverse_lookups = 1; +static bool do_reverse_lookups = true; /* This option only exists for backward compatibility. If it is false and two * ntpd peers use the same refclock driver, the plugin will try to write * simultaneous measurements from both to the same type instance. */ -static _Bool include_unit_id = 0; +static bool include_unit_id; #define NTPD_DEFAULT_HOST "localhost" #define NTPD_DEFAULT_PORT "123" @@ -717,7 +717,7 @@ ntpd_get_refclock_id(struct info_peer_summary const *peer_info) { static int ntpd_get_name_from_address(char *buffer, size_t buffer_size, struct info_peer_summary const *peer_info, - _Bool do_reverse_lookup) { + bool do_reverse_lookup) { struct sockaddr_storage sa = {0}; socklen_t sa_len; int flags = 0;