File nagios-plugins-2.1.1-64bit_check_portability.patch of Package nagios-core-plugins

diff -Ppru nagios-plugins-2.1.1.orig/plugins/check_hpjd.c nagios-plugins-2.1.1.64bit/plugins/check_hpjd.c
--- nagios-plugins-2.1.1.orig/plugins/check_hpjd.c	2014-03-04 22:41:57.000000000 +0100
+++ nagios-plugins-2.1.1.64bit/plugins/check_hpjd.c	2015-09-22 15:45:00.014101162 +0200
@@ -346,7 +346,7 @@ process_arguments (int argc, char **argv
 			if (!is_intpos(optarg))
 				usage2 (_("Port must be a positive short integer"), optarg);
 			else
-				port = atoi(optarg);
+				port = optarg;
 			break;
 		case 'V':									/* version */
 			print_revision (progname, NP_VERSION);
@@ -380,7 +380,7 @@ process_arguments (int argc, char **argv
 		if (argv[c] != NULL )
 			port = argv[c];
 		else
-			port = atoi (DEFAULT_PORT);
+			port = DEFAULT_PORT;
 	}
 
 	return validate_arguments ();
openSUSE Build Service is sponsored by