diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-19 08:48:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-19 08:48:32 (GMT) |
commit | 47cb10013e6935bb6cdf470925ea5a5f74464646 (patch) | |
tree | bb871753b0c5f8c7a45a6f55c3977c060ead765c /plugins/check_radius.c | |
parent | 5b29a86e3a31405f3070a82f81b171068576015e (diff) | |
parent | efe79595d3813b81f873f125260d0f9937535134 (diff) | |
download | monitoring-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_radius.c')
-rw-r--r-- | plugins/check_radius.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_radius.c b/plugins/check_radius.c index b1b4938..6b32710 100644 --- a/plugins/check_radius.c +++ b/plugins/check_radius.c | |||
@@ -93,7 +93,7 @@ char *expect = NULL; | |||
93 | char *config_file = NULL; | 93 | char *config_file = NULL; |
94 | unsigned short port = PW_AUTH_UDP_PORT; | 94 | unsigned short port = PW_AUTH_UDP_PORT; |
95 | int retries = 1; | 95 | int retries = 1; |
96 | int verbose = FALSE; | 96 | bool verbose = false; |
97 | 97 | ||
98 | /****************************************************************************** | 98 | /****************************************************************************** |
99 | 99 | ||
@@ -272,10 +272,10 @@ process_arguments (int argc, char **argv) | |||
272 | print_revision (progname, NP_VERSION); | 272 | print_revision (progname, NP_VERSION); |
273 | exit (STATE_UNKNOWN); | 273 | exit (STATE_UNKNOWN); |
274 | case 'v': /* verbose mode */ | 274 | case 'v': /* verbose mode */ |
275 | verbose = TRUE; | 275 | verbose = true; |
276 | break; | 276 | break; |
277 | case 'H': /* hostname */ | 277 | case 'H': /* hostname */ |
278 | if (is_host (optarg) == FALSE) { | 278 | if (!is_host (optarg)) { |
279 | usage2 (_("Invalid hostname/address"), optarg); | 279 | usage2 (_("Invalid hostname/address"), optarg); |
280 | } | 280 | } |
281 | server = optarg; | 281 | server = optarg; |