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_time.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/check_time.c') diff --git a/plugins/check_time.c b/plugins/check_time.c index b3210bc3..dde6eeaf 100644 --- a/plugins/check_time.c +++ b/plugins/check_time.c @@ -119,7 +119,7 @@ main (int argc, char **argv) result = STATE_WARNING; else result = STATE_UNKNOWN; - terminate (result, + die (result, _("TIME UNKNOWN - could not connect to server %s, port %d\n"), server_address, server_port); } @@ -142,7 +142,7 @@ main (int argc, char **argv) result = STATE_WARNING; else result = STATE_UNKNOWN; - terminate (result, + die (result, _("TIME UNKNOWN - no data on recv() from server %s, port %d\n"), server_address, server_port); } @@ -155,7 +155,7 @@ main (int argc, char **argv) && (end_time - start_time) > warning_time) result = STATE_WARNING; if (result != STATE_OK) - terminate (result, _("TIME %s - %d second response time\n"), + die (result, _("TIME %s - %d second response time\n"), state_text (result), (int) (end_time - start_time)); server_time = ntohl (raw_server_time) - UNIX_EPOCH; -- cgit v1.2.3-74-g34f1