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_by_ssh.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_by_ssh.c')
-rw-r--r-- | plugins/check_by_ssh.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 1ad547e..1f5f72d 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c | |||
@@ -50,7 +50,7 @@ unsigned int services = 0; | |||
50 | int skip_stdout = 0; | 50 | int skip_stdout = 0; |
51 | int skip_stderr = 0; | 51 | int skip_stderr = 0; |
52 | int warn_on_stderr = 0; | 52 | int warn_on_stderr = 0; |
53 | bool unknown_timeout = FALSE; | 53 | bool unknown_timeout = false; |
54 | char *remotecmd = NULL; | 54 | char *remotecmd = NULL; |
55 | char **commargv = NULL; | 55 | char **commargv = NULL; |
56 | int commargc = 0; | 56 | int commargc = 0; |
@@ -58,8 +58,8 @@ char *hostname = NULL; | |||
58 | char *outputfile = NULL; | 58 | char *outputfile = NULL; |
59 | char *host_shortname = NULL; | 59 | char *host_shortname = NULL; |
60 | char **service; | 60 | char **service; |
61 | int passive = FALSE; | 61 | bool passive = false; |
62 | int verbose = FALSE; | 62 | bool verbose = false; |
63 | 63 | ||
64 | int | 64 | int |
65 | main (int argc, char **argv) | 65 | main (int argc, char **argv) |
@@ -235,7 +235,7 @@ process_arguments (int argc, char **argv) | |||
235 | print_help (); | 235 | print_help (); |
236 | exit (STATE_UNKNOWN); | 236 | exit (STATE_UNKNOWN); |
237 | case 'v': /* help */ | 237 | case 'v': /* help */ |
238 | verbose = TRUE; | 238 | verbose = true; |
239 | break; | 239 | break; |
240 | case 't': /* timeout period */ | 240 | case 't': /* timeout period */ |
241 | if (!is_integer (optarg)) | 241 | if (!is_integer (optarg)) |
@@ -244,7 +244,7 @@ process_arguments (int argc, char **argv) | |||
244 | timeout_interval = atoi (optarg); | 244 | timeout_interval = atoi (optarg); |
245 | break; | 245 | break; |
246 | case 'U': | 246 | case 'U': |
247 | unknown_timeout = TRUE; | 247 | unknown_timeout = true; |
248 | break; | 248 | break; |
249 | case 'H': /* host */ | 249 | case 'H': /* host */ |
250 | hostname = optarg; | 250 | hostname = optarg; |
@@ -257,7 +257,7 @@ process_arguments (int argc, char **argv) | |||
257 | break; | 257 | break; |
258 | case 'O': /* output file */ | 258 | case 'O': /* output file */ |
259 | outputfile = optarg; | 259 | outputfile = optarg; |
260 | passive = TRUE; | 260 | passive = true; |
261 | break; | 261 | break; |
262 | case 's': /* description of service to check */ | 262 | case 's': /* description of service to check */ |
263 | p1 = optarg; | 263 | p1 = optarg; |