diff options
-rw-r--r-- | plugins/check_curl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index bf46b226..38c97109 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
@@ -1775,9 +1775,9 @@ process_arguments (int argc, char **argv) | |||
1775 | invert_regex = true; | 1775 | invert_regex = true; |
1776 | break; | 1776 | break; |
1777 | case STATE_REGEX: | 1777 | case STATE_REGEX: |
1778 | if (!strcmp (optarg, "critical")) | 1778 | if (!strcasecmp (optarg, "critical")) |
1779 | state_regex = STATE_CRITICAL; | 1779 | state_regex = STATE_CRITICAL; |
1780 | else if (!strcmp (optarg, "warning")) | 1780 | else if (!strcasecmp (optarg, "warning")) |
1781 | state_regex = STATE_WARNING; | 1781 | state_regex = STATE_WARNING; |
1782 | else usage2 (_("Invalid state-regex option"), optarg); | 1782 | else usage2 (_("Invalid state-regex option"), optarg); |
1783 | break; | 1783 | break; |