From 9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Thu, 7 Aug 2003 11:51:12 +0000 Subject: 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 --- plugins/check_tcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/check_tcp.c') diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 32bdae70..a897d8e8 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -323,7 +323,7 @@ main (int argc, char **argv) /* return a CRITICAL status if we couldn't read any data */ if (status == NULL) - terminate (STATE_CRITICAL, _("No data received from host\n")); + die (STATE_CRITICAL, _("No data received from host\n")); strip (status); @@ -335,7 +335,7 @@ main (int argc, char **argv) if (verbose) printf ("%d %d\n", i, server_expect_count); if (i >= server_expect_count) - terminate (STATE_WARNING, _("Invalid response from host\n")); + die (STATE_WARNING, _("Invalid response from host\n")); if (strstr (status, server_expect[i])) break; } @@ -542,7 +542,7 @@ process_arguments (int argc, char **argv) break; case 'S': #ifndef HAVE_SSL - terminate (STATE_UNKNOWN, + die (STATE_UNKNOWN, _("SSL support not available. Install OpenSSL and recompile.")); #endif use_ssl = TRUE; -- cgit v1.2.3-74-g34f1