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_radius.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/check_radius.c') diff --git a/plugins/check_radius.c b/plugins/check_radius.c index 3aa5ae71..714de58c 100644 --- a/plugins/check_radius.c +++ b/plugins/check_radius.c @@ -165,14 +165,14 @@ main (int argc, char **argv) if ((config_file && rc_read_config (config_file)) || rc_read_dictionary (rc_conf_str ("dictionary"))) - terminate (STATE_UNKNOWN, _("Config file error")); + die (STATE_UNKNOWN, _("Config file error")); service = PW_AUTHENTICATE_ONLY; if (!(rc_avpair_add (&data.send_pairs, PW_SERVICE_TYPE, &service, 0) && rc_avpair_add (&data.send_pairs, PW_USER_NAME, username, 0) && rc_avpair_add (&data.send_pairs, PW_USER_PASSWORD, password, 0))) - terminate (STATE_UNKNOWN, _("Out of Memory?")); + die (STATE_UNKNOWN, _("Out of Memory?")); /* * Fill in NAS-IP-Address @@ -193,15 +193,15 @@ main (int argc, char **argv) rc_avpair_free (data.receive_pairs); if (result == TIMEOUT_RC) - terminate (STATE_CRITICAL, _("Timeout")); + die (STATE_CRITICAL, _("Timeout")); if (result == ERROR_RC) - terminate (STATE_CRITICAL, _("Auth Error")); + die (STATE_CRITICAL, _("Auth Error")); if (result == BADRESP_RC) - terminate (STATE_WARNING, _("Auth Failed")); + die (STATE_WARNING, _("Auth Failed")); if (expect && !strstr (msg, expect)) - terminate (STATE_WARNING, msg); + die (STATE_WARNING, msg); if (result == OK_RC) - terminate (STATE_OK, _("Auth OK")); + die (STATE_OK, _("Auth OK")); return (0); } -- cgit v1.2.3