summaryrefslogtreecommitdiffstats
path: root/plugins/check_dig.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-10-19 08:48:32 (GMT)
committerGitHub <noreply@github.com>2023-10-19 08:48:32 (GMT)
commit47cb10013e6935bb6cdf470925ea5a5f74464646 (patch)
treebb871753b0c5f8c7a45a6f55c3977c060ead765c /plugins/check_dig.c
parent5b29a86e3a31405f3070a82f81b171068576015e (diff)
parentefe79595d3813b81f873f125260d0f9937535134 (diff)
downloadmonitoring-plugins-47cb10013e6935bb6cdf470925ea5a5f74464646.tar.gz
Merge pull request #1948 from RincewindsHat/more_booleans
Replace most of the boolean variables declared as "int" with "bool"
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r--plugins/check_dig.c10
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;
56char *dns_server = NULL; 56char *dns_server = NULL;
57char *dig_args = ""; 57char *dig_args = "";
58char *query_transport = ""; 58char *query_transport = "";
59int verbose = FALSE; 59bool verbose = false;
60int server_port = DEFAULT_PORT; 60int server_port = DEFAULT_PORT;
61int number_tries = DEFAULT_TRIES; 61int number_tries = DEFAULT_TRIES;
62double warning_interval = UNDEFINED; 62double 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;