diff options
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index e6f88e9d..b676eec5 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -255,7 +255,7 @@ process_arguments (int argc, char **argv) socket_timeout = atoi (optarg); break; case 'c': /* critical time threshold */ - if (!is_intnonneg (optarg)) + if (!is_nonnegative (optarg)) usage2 (_("invalid critical threshold"), optarg); else { critical_time = strtod (optarg, NULL); @@ -263,7 +263,7 @@ process_arguments (int argc, char **argv) } break; case 'w': /* warning time threshold */ - if (!is_intnonneg (optarg)) + if (!is_nonnegative (optarg)) usage2 (_("invalid warning threshold"), optarg); else { warning_time = strtod (optarg, NULL); |