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_real.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/check_real.c') diff --git a/plugins/check_real.c b/plugins/check_real.c index 1744b329..875f9c40 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c @@ -91,7 +91,7 @@ main (int argc, char **argv) /* try to connect to the host at the given port number */ if (my_tcp_connect (server_address, server_port, &sd) != STATE_OK) - terminate (STATE_CRITICAL, "Unable to connect to %s on port %d\n", + die (STATE_CRITICAL, "Unable to connect to %s on port %d\n", server_address, server_port); /* Part I - Server Check */ @@ -113,7 +113,7 @@ main (int argc, char **argv) /* return a CRITICAL status if we couldn't read any data */ if (result == -1) - terminate (STATE_CRITICAL, "No data received from %s\n", host_name); + die (STATE_CRITICAL, "No data received from %s\n", host_name); /* make sure we find the response we are looking for */ if (!strstr (buffer, server_expect)) { -- cgit v1.2.3