freebsd-ports/net-mgmt/netsaint-plugins/files/patch-check_mrtg.c
Pav Lucistnik 7c5e870d30 - Fix argument parsing in check_mrtg
PR:		ports/67056
Submitted by:	Michael Wayne <wayne@staff.msen.com>
2004-05-24 20:40:04 +00:00

15 lines
572 B
C

--- plugins/check_mrtg.c.orig Mon May 24 22:29:35 2004
+++ plugins/check_mrtg.c Mon May 24 22:29:52 2004
@@ -338,10 +338,10 @@
usage("Invalid variable number\n");
break;
case 'w': /* critical time threshold */
- value_warning_threshold=strtoul(argv[5],NULL,10);
+ value_warning_threshold=strtoul(optarg,NULL,10);
break;
case 'c': /* warning time threshold */
- value_critical_threshold=strtoul(argv[6],NULL,10);
+ value_critical_threshold=strtoul(optarg,NULL,10);
break;
case 'l': /* label */
value_label=optarg;