[monitoring-plugins] check_radius: Make compiler happy

Holger Weiss git at monitoring-plugins.org
Mon Nov 21 15:00:12 CET 2016


 Module: monitoring-plugins
 Branch: master
 Commit: fae05eb17809e31ddb167e2358686d80b0997eff
 Author: Holger Weiss <holger at zedat.fu-berlin.de>
   Date: Mon Nov 21 14:49:03 2016 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=fae05eb

check_radius: Make compiler happy

---

 plugins/check_radius.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index b3b8c82..fe84b7c 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;



More information about the Commits mailing list