diff options
Diffstat (limited to 'plugins')
| -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) | |||
| 255 | socket_timeout = atoi (optarg); | 255 | socket_timeout = atoi (optarg); |
| 256 | break; | 256 | break; |
| 257 | case 'c': /* critical time threshold */ | 257 | case 'c': /* critical time threshold */ |
| 258 | if (!is_intnonneg (optarg)) | 258 | if (!is_nonnegative (optarg)) |
| 259 | usage2 (_("invalid critical threshold"), optarg); | 259 | usage2 (_("invalid critical threshold"), optarg); |
| 260 | else { | 260 | else { |
| 261 | critical_time = strtod (optarg, NULL); | 261 | critical_time = strtod (optarg, NULL); |
| @@ -263,7 +263,7 @@ process_arguments (int argc, char **argv) | |||
| 263 | } | 263 | } |
| 264 | break; | 264 | break; |
| 265 | case 'w': /* warning time threshold */ | 265 | case 'w': /* warning time threshold */ |
| 266 | if (!is_intnonneg (optarg)) | 266 | if (!is_nonnegative (optarg)) |
| 267 | usage2 (_("invalid warning threshold"), optarg); | 267 | usage2 (_("invalid warning threshold"), optarg); |
| 268 | else { | 268 | else { |
| 269 | warning_time = strtod (optarg, NULL); | 269 | warning_time = strtod (optarg, NULL); |
