diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-11-21 14:49:03 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-11-21 14:49:03 +0100 |
commit | fae05eb17809e31ddb167e2358686d80b0997eff (patch) | |
tree | 41db3007696819f9d8da94a7b343d5ace893968a /plugins/check_radius.c | |
parent | fce769d942ec08044812b71bfa470ff26f9c0eda (diff) | |
download | monitoring-plugins-fae05eb17809e31ddb167e2358686d80b0997eff.tar.gz |
check_radius: Make compiler happy
Diffstat (limited to 'plugins/check_radius.c')
-rw-r--r-- | plugins/check_radius.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_radius.c b/plugins/check_radius.c index b3b8c829..fe84b7ce 100644 --- a/plugins/check_radius.c +++ b/plugins/check_radius.c | |||
@@ -278,7 +278,7 @@ process_arguments (int argc, char **argv) | |||
278 | break; | 278 | break; |
279 | case 'P': /* port */ | 279 | case 'P': /* port */ |
280 | if (is_intnonneg (optarg)) | 280 | if (is_intnonneg (optarg)) |
281 | port = atoi (optarg); | 281 | port = (unsigned short)atoi (optarg); |
282 | else | 282 | else |
283 | usage4 (_("Port must be a positive integer")); | 283 | usage4 (_("Port must be a positive integer")); |
284 | break; | 284 | break; |
@@ -314,7 +314,7 @@ process_arguments (int argc, char **argv) | |||
314 | break; | 314 | break; |
315 | case 't': /* timeout */ | 315 | case 't': /* timeout */ |
316 | if (is_intpos (optarg)) | 316 | if (is_intpos (optarg)) |
317 | timeout_interval = atoi (optarg); | 317 | timeout_interval = (unsigned)atoi (optarg); |
318 | else | 318 | else |
319 | usage2 (_("Timeout interval must be a positive integer"), optarg); | 319 | usage2 (_("Timeout interval must be a positive integer"), optarg); |
320 | break; | 320 | break; |