diff options
Diffstat (limited to 'plugins/check_udp.c')
-rw-r--r-- | plugins/check_udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_udp.c b/plugins/check_udp.c index aa8be1c2..b79f31f7 100644 --- a/plugins/check_udp.c +++ b/plugins/check_udp.c | |||
@@ -165,14 +165,14 @@ process_arguments (int argc, char **argv) | |||
165 | break; | 165 | break; |
166 | case 'c': /* critical */ | 166 | case 'c': /* critical */ |
167 | if (!is_intnonneg (optarg)) | 167 | if (!is_intnonneg (optarg)) |
168 | usage (_("Critical threshold must be a positive integer\n")); | 168 | usage4 (_("Critical threshold must be a positive integer")); |
169 | else | 169 | else |
170 | critical_time = atoi (optarg); | 170 | critical_time = atoi (optarg); |
171 | check_critical_time = TRUE; | 171 | check_critical_time = TRUE; |
172 | break; | 172 | break; |
173 | case 'w': /* warning */ | 173 | case 'w': /* warning */ |
174 | if (!is_intnonneg (optarg)) | 174 | if (!is_intnonneg (optarg)) |
175 | usage (_("Warning threshold must be a positive integer\n")); | 175 | usage4 (_("Warning threshold must be a positive integer")); |
176 | else | 176 | else |
177 | warning_time = atoi (optarg); | 177 | warning_time = atoi (optarg); |
178 | check_warning_time = TRUE; | 178 | check_warning_time = TRUE; |
@@ -185,7 +185,7 @@ process_arguments (int argc, char **argv) | |||
185 | break; | 185 | break; |
186 | case 'p': /* port */ | 186 | case 'p': /* port */ |
187 | if (!is_intnonneg (optarg)) | 187 | if (!is_intnonneg (optarg)) |
188 | usage (_("Port must be a positive integer\n")); | 188 | usage4 (_("Port must be a positive integer")); |
189 | else | 189 | else |
190 | server_port = atoi (optarg); | 190 | server_port = atoi (optarg); |
191 | break; | 191 | break; |