diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-18 14:14:01 (GMT) |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-18 14:14:01 (GMT) |
commit | bafe2c2ceb522f74f22104c8cebe62b177ff46e4 (patch) | |
tree | b55433849ffea333be28ae76f872c7b4fbeb43e3 /plugins | |
parent | 2f29f45e10364f50f70a8d3fce9f1fe965527a68 (diff) | |
download | monitoring-plugins-bafe2c2ceb522f74f22104c8cebe62b177ff46e4.tar.gz |
check_dig: Use C99 booleans
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_dig.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 5d85ae2..be7a610 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c | |||
@@ -56,7 +56,7 @@ char *expected_address = NULL; | |||
56 | char *dns_server = NULL; | 56 | char *dns_server = NULL; |
57 | char *dig_args = ""; | 57 | char *dig_args = ""; |
58 | char *query_transport = ""; | 58 | char *query_transport = ""; |
59 | int verbose = FALSE; | 59 | bool verbose = false; |
60 | int server_port = DEFAULT_PORT; | 60 | int server_port = DEFAULT_PORT; |
61 | int number_tries = DEFAULT_TRIES; | 61 | int number_tries = DEFAULT_TRIES; |
62 | double warning_interval = UNDEFINED; | 62 | double warning_interval = UNDEFINED; |
@@ -176,11 +176,11 @@ main (int argc, char **argv) | |||
176 | state_text (result), elapsed_time, | 176 | state_text (result), elapsed_time, |
177 | msg ? msg : _("Probably a non-existent host/domain"), | 177 | msg ? msg : _("Probably a non-existent host/domain"), |
178 | fperfdata("time", elapsed_time, "s", | 178 | fperfdata("time", elapsed_time, "s", |
179 | (warning_interval>UNDEFINED?TRUE:FALSE), | 179 | (warning_interval>UNDEFINED ? true:false), |
180 | warning_interval, | 180 | warning_interval, |
181 | (critical_interval>UNDEFINED?TRUE:FALSE), | 181 | (critical_interval>UNDEFINED ? true:false), |
182 | critical_interval, | 182 | critical_interval, |
183 | TRUE, 0, FALSE, 0)); | 183 | true, 0, false, 0)); |
184 | return result; | 184 | return result; |
185 | } | 185 | } |
186 | 186 | ||
@@ -270,7 +270,7 @@ process_arguments (int argc, char **argv) | |||
270 | dig_args = strdup(optarg); | 270 | dig_args = strdup(optarg); |
271 | break; | 271 | break; |
272 | case 'v': /* verbose */ | 272 | case 'v': /* verbose */ |
273 | verbose = TRUE; | 273 | verbose = true; |
274 | break; | 274 | break; |
275 | case 'T': | 275 | case 'T': |
276 | record_type = optarg; | 276 | record_type = optarg; |