diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-18 16:12:41 +0200 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-18 16:12:41 +0200 |
commit | 2f29f45e10364f50f70a8d3fce9f1fe965527a68 (patch) | |
tree | 00057c122dfff041ce2c7e0f778c798727898727 /plugins/check_by_ssh.c | |
parent | 5b29a86e3a31405f3070a82f81b171068576015e (diff) | |
download | monitoring-plugins-2f29f45e10364f50f70a8d3fce9f1fe965527a68.tar.gz |
check_by_ssh: Use C99 booleans
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 1ad547ed..1f5f72d4 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; |