aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_radius.c4
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)
break;
case 'P': /* port */
if (is_intnonneg (optarg))
- port = atoi (optarg);
+ port = (unsigned short)atoi (optarg);
else
usage4 (_("Port must be a positive integer"));
break;
@@ -314,7 +314,7 @@ process_arguments (int argc, char **argv)
break;
case 't': /* timeout */
if (is_intpos (optarg))
- timeout_interval = atoi (optarg);
+ timeout_interval = (unsigned)atoi (optarg);
else
usage2 (_("Timeout interval must be a positive integer"), optarg);
break;