diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-07 11:51:12 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-07 11:51:12 +0000 |
commit | 9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709 (patch) | |
tree | cb5831f4c018edc441686b2fe7715eb91de4ffee /plugins/check_radius.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_radius.c')
-rw-r--r-- | plugins/check_radius.c | 14 |
1 files changed, 7 insertions, 7 deletions
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); } |