summaryrefslogtreecommitdiffstats
path: root/plugins/check_smtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_smtp.c')
-rw-r--r--plugins/check_smtp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 03335665..24883fd8 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -735,7 +735,7 @@ check_smtp_config_wrapper process_arguments(int argc, char **argv) {
735 break; 735 break;
736 case 'c': /* critical time threshold */ { 736 case 'c': /* critical time threshold */ {
737 mp_range_parsed tmp = mp_parse_range_string(optarg); 737 mp_range_parsed tmp = mp_parse_range_string(optarg);
738 if (tmp.error != MP_PARSING_SUCCES) { 738 if (tmp.error != MP_PARSING_SUCCESS) {
739 die(STATE_UNKNOWN, "failed to parse critical time threshold"); 739 die(STATE_UNKNOWN, "failed to parse critical time threshold");
740 } 740 }
741 result.config.connection_time = 741 result.config.connection_time =
@@ -743,7 +743,7 @@ check_smtp_config_wrapper process_arguments(int argc, char **argv) {
743 } break; 743 } break;
744 case 'w': /* warning time threshold */ { 744 case 'w': /* warning time threshold */ {
745 mp_range_parsed tmp = mp_parse_range_string(optarg); 745 mp_range_parsed tmp = mp_parse_range_string(optarg);
746 if (tmp.error != MP_PARSING_SUCCES) { 746 if (tmp.error != MP_PARSING_SUCCESS) {
747 die(STATE_UNKNOWN, "failed to parse warning time threshold"); 747 die(STATE_UNKNOWN, "failed to parse warning time threshold");
748 } 748 }
749 result.config.connection_time = 749 result.config.connection_time =
@@ -819,11 +819,7 @@ check_smtp_config_wrapper process_arguments(int argc, char **argv) {
819 address_family = AF_INET; 819 address_family = AF_INET;
820 break; 820 break;
821 case '6': 821 case '6':
822#ifdef USE_IPV6
823 address_family = AF_INET6; 822 address_family = AF_INET6;
824#else
825 usage4(_("IPv6 support not available"));
826#endif
827 break; 823 break;
828 case 'V': /* version */ 824 case 'V': /* version */
829 print_revision(progname, NP_VERSION); 825 print_revision(progname, NP_VERSION);