diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-07 11:51:12 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-07 11:51:12 (GMT) |
commit | 9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709 (patch) | |
tree | cb5831f4c018edc441686b2fe7715eb91de4ffee /plugins/check_tcp.c | |
parent | 7f1bb2a782a008b55b0ef657ec01d7fbdb637fd4 (diff) | |
download | monitoring-plugins-9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709.tar.gz |
replace "terminate" with "die" for shorter name and better readability
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@656 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 32bdae7..a897d8e 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -323,7 +323,7 @@ main (int argc, char **argv) | |||
323 | 323 | ||
324 | /* return a CRITICAL status if we couldn't read any data */ | 324 | /* return a CRITICAL status if we couldn't read any data */ |
325 | if (status == NULL) | 325 | if (status == NULL) |
326 | terminate (STATE_CRITICAL, _("No data received from host\n")); | 326 | die (STATE_CRITICAL, _("No data received from host\n")); |
327 | 327 | ||
328 | strip (status); | 328 | strip (status); |
329 | 329 | ||
@@ -335,7 +335,7 @@ main (int argc, char **argv) | |||
335 | if (verbose) | 335 | if (verbose) |
336 | printf ("%d %d\n", i, server_expect_count); | 336 | printf ("%d %d\n", i, server_expect_count); |
337 | if (i >= server_expect_count) | 337 | if (i >= server_expect_count) |
338 | terminate (STATE_WARNING, _("Invalid response from host\n")); | 338 | die (STATE_WARNING, _("Invalid response from host\n")); |
339 | if (strstr (status, server_expect[i])) | 339 | if (strstr (status, server_expect[i])) |
340 | break; | 340 | break; |
341 | } | 341 | } |
@@ -542,7 +542,7 @@ process_arguments (int argc, char **argv) | |||
542 | break; | 542 | break; |
543 | case 'S': | 543 | case 'S': |
544 | #ifndef HAVE_SSL | 544 | #ifndef HAVE_SSL |
545 | terminate (STATE_UNKNOWN, | 545 | die (STATE_UNKNOWN, |
546 | _("SSL support not available. Install OpenSSL and recompile.")); | 546 | _("SSL support not available. Install OpenSSL and recompile.")); |
547 | #endif | 547 | #endif |
548 | use_ssl = TRUE; | 548 | use_ssl = TRUE; |