[Nagiosplug-checkins] nagiosplug/plugins check_by_ssh.c,1.30,1.31 check_dig.c,1.36,1.37 check_disk.c,1.54,1.55 check_dns.c,1.39,1.40 check_fping.c,1.22,1.23 check_game.c,1.19,1.20 check_hpjd.c,1.28,1.29 check_http.c,1.74,1.75 check_ldap.c,1.26,1.27 check_load.c,1.25,1.26 check_mrtg.c,1.21,1.22 check_mrtgtraf.c,1.22,1.23 check_mysql.c,1.22,1.23 check_nagios.c,1.21,1.22 check_nt.c,1.33,1.34 check_nwstat.c,1.25,1.26 check_overcr.c,1.16,1.17 check_pgsql.c,1.28,1.29 check_ping.c,1.37,1.38 check_procs.c,1.39,1.40 check_radius.c,1.19,1.20 check_real.c,1.22,1.23 check_smtp.c,1.36,1.37 check_snmp.c,1.47,1.48 check_ssh.c,1.24,1.25 check_swap.c,1.39,1.40 check_tcp.c,1.55,1.56 check_time.c,1.22,1.23 check_udp.c,1.22,1.23 check_ups.c,1.24,1.25 check_users.c,1.17,1.18 negate.c,1.22,1.23

Benoit Mortier opensides at users.sourceforge.net
Fri Dec 3 15:56:03 CET 2004


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv873/plugins

Modified Files:
	check_by_ssh.c check_dig.c check_disk.c check_dns.c 
	check_fping.c check_game.c check_hpjd.c check_http.c 
	check_ldap.c check_load.c check_mrtg.c check_mrtgtraf.c 
	check_mysql.c check_nagios.c check_nt.c check_nwstat.c 
	check_overcr.c check_pgsql.c check_ping.c check_procs.c 
	check_radius.c check_real.c check_smtp.c check_snmp.c 
	check_ssh.c check_swap.c check_tcp.c check_time.c check_udp.c 
	check_ups.c check_users.c negate.c 
Log Message:

reverting my changes from !=TRUE to == ERROR, that's not good ;-( sorry



Index: check_mrtg.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_mrtg.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- check_mrtg.c	3 Dec 2004 23:02:02 -0000	1.21
+++ check_mrtg.c	3 Dec 2004 23:55:28 -0000	1.22
@@ -59,7 +59,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments\n"));
 
 	/* open the MRTG log file for reading */

Index: check_tcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- check_tcp.c	3 Dec 2004 23:23:25 -0000	1.55
+++ check_tcp.c	3 Dec 2004 23:55:29 -0000	1.56
@@ -239,7 +239,7 @@
 	server_quit = QUIT;
 	status = strdup ("");
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* use default expect if none listed in process_arguments() */

Index: check_overcr.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_overcr.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- check_overcr.c	3 Dec 2004 23:02:03 -0000	1.16
+++ check_overcr.c	3 Dec 2004 23:55:29 -0000	1.17
@@ -85,7 +85,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* initialize alarm signal handling */

Index: check_radius.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_radius.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- check_radius.c	3 Dec 2004 23:02:03 -0000	1.19
+++ check_radius.c	3 Dec 2004 23:55:29 -0000	1.20
@@ -113,7 +113,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	str = strdup ("dictionary");

Index: check_mrtgtraf.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_mrtgtraf.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- check_mrtgtraf.c	3 Dec 2004 23:02:02 -0000	1.22
+++ check_mrtgtraf.c	3 Dec 2004 23:55:28 -0000	1.23
@@ -62,7 +62,7 @@
 	char incoming_speed_rating[8];
 	char outgoing_speed_rating[8];
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* open the MRTG log file for reading */

Index: check_by_ssh.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_by_ssh.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- check_by_ssh.c	3 Dec 2004 20:28:51 -0000	1.30
+++ check_by_ssh.c	3 Dec 2004 23:55:28 -0000	1.31
@@ -68,7 +68,7 @@
 	textdomain (PACKAGE);
 
 	/* process arguments */
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* Set signal handling and alarm timeout */

Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- check_http.c	3 Dec 2004 23:02:02 -0000	1.74
+++ check_http.c	3 Dec 2004 23:55:28 -0000	1.75
@@ -145,7 +145,7 @@
 	asprintf (&user_agent, "User-Agent: check_http/%s (nagios-plugins %s)",
 	          clean_revstring (revision), VERSION);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	if (strstr (timestamp, ":")) {

Index: check_time.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_time.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- check_time.c	3 Dec 2004 23:02:04 -0000	1.22
+++ check_time.c	3 Dec 2004 23:55:29 -0000	1.23
@@ -62,7 +62,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* initialize alarm signal handling */

Index: check_ssh.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ssh.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- check_ssh.c	3 Dec 2004 20:28:53 -0000	1.24
+++ check_ssh.c	3 Dec 2004 23:55:29 -0000	1.25
@@ -57,7 +57,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* initialize alarm signal handling */

Index: check_udp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_udp.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- check_udp.c	3 Dec 2004 23:02:04 -0000	1.22
+++ check_udp.c	3 Dec 2004 23:55:29 -0000	1.23
@@ -51,7 +51,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* initialize alarm signal handling */

Index: check_fping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_fping.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- check_fping.c	3 Dec 2004 23:02:02 -0000	1.22
+++ check_fping.c	3 Dec 2004 23:55:28 -0000	1.23
@@ -69,7 +69,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	server = strscpy (server, server_name);

Index: check_users.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_users.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- check_users.c	3 Dec 2004 20:28:53 -0000	1.17
+++ check_users.c	3 Dec 2004 23:55:29 -0000	1.18
@@ -50,7 +50,7 @@
 
 	perf = strdup("");
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* run the command */

Index: check_ping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ping.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- check_ping.c	3 Dec 2004 20:28:52 -0000	1.37
+++ check_ping.c	3 Dec 2004 23:55:29 -0000	1.38
@@ -78,7 +78,7 @@
 	addresses = malloc (sizeof(char*) * max_addr);
 	addresses[0] = NULL;
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* Set signal handling and alarm */

Index: check_dns.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dns.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- check_dns.c	3 Dec 2004 23:02:02 -0000	1.39
+++ check_dns.c	3 Dec 2004 23:55:28 -0000	1.40
@@ -71,7 +71,7 @@
 		usage4 (_("Cannot catch SIGALRM"));
 	}
 
-	if (process_arguments (argc, argv) != TRUE) {
+	if (process_arguments (argc, argv) == ERROR) {
 		usage4 (_("Could not parse arguments"));
 	}
 

Index: check_swap.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_swap.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- check_swap.c	3 Dec 2004 23:02:04 -0000	1.39
+++ check_swap.c	3 Dec 2004 23:55:29 -0000	1.40
@@ -89,7 +89,7 @@
 	tmp_status = strdup ("");
 	perf = strdup ("");
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 #ifdef HAVE_PROC_MEMINFO

Index: check_hpjd.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_hpjd.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- check_hpjd.c	3 Dec 2004 23:02:02 -0000	1.28
+++ check_hpjd.c	3 Dec 2004 23:55:28 -0000	1.29
@@ -85,7 +85,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* removed ' 2>1' at end of command 10/27/1999 - EG */

Index: check_snmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_snmp.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- check_snmp.c	3 Dec 2004 23:02:03 -0000	1.47
+++ check_snmp.c	3 Dec 2004 23:55:29 -0000	1.48
@@ -156,7 +156,7 @@
 	output_delim = strdup (DEFAULT_OUTPUT_DELIMITER);
 	miblist = strdup (DEFAULT_MIBLIST);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* create the command line to execute */

Index: check_real.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_real.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- check_real.c	3 Dec 2004 23:02:03 -0000	1.22
+++ check_real.c	3 Dec 2004 23:55:29 -0000	1.23
@@ -64,7 +64,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* initialize alarm signal handling */

Index: check_mysql.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_mysql.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- check_mysql.c	3 Dec 2004 20:28:52 -0000	1.22
+++ check_mysql.c	3 Dec 2004 23:55:28 -0000	1.23
@@ -59,7 +59,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* initialize mysql  */

Index: check_dig.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dig.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- check_dig.c	3 Dec 2004 23:01:46 -0000	1.36
+++ check_dig.c	3 Dec 2004 23:55:28 -0000	1.37
@@ -68,7 +68,7 @@
 	if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR)
 		usage4 (_("Cannot catch SIGALRM"));
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* get the command to run */

Index: check_ldap.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ldap.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- check_ldap.c	3 Dec 2004 23:02:02 -0000	1.26
+++ check_ldap.c	3 Dec 2004 23:55:28 -0000	1.27
@@ -74,7 +74,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* initialize alarm signal handling */

Index: check_ups.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ups.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- check_ups.c	3 Dec 2004 23:02:04 -0000	1.24
+++ check_ups.c	3 Dec 2004 23:55:29 -0000	1.25
@@ -110,7 +110,7 @@
 	data = strdup ("");
 	message = strdup ("");
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* initialize alarm signal handling */

Index: check_disk.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- check_disk.c	3 Dec 2004 23:01:46 -0000	1.54
+++ check_disk.c	3 Dec 2004 23:55:28 -0000	1.55
@@ -163,7 +163,7 @@
 
 	mount_list = read_filesystem_list (0);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	for (me = mount_list; me; me = me->me_next) {

Index: check_nwstat.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_nwstat.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- check_nwstat.c	3 Dec 2004 23:02:02 -0000	1.25
+++ check_nwstat.c	3 Dec 2004 23:55:29 -0000	1.26
@@ -121,7 +121,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments(argc,argv) != TRUE)
+	if (process_arguments(argc,argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* initialize alarm signal handling */

Index: check_pgsql.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_pgsql.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- check_pgsql.c	3 Dec 2004 23:02:03 -0000	1.28
+++ check_pgsql.c	3 Dec 2004 23:55:29 -0000	1.29
@@ -136,7 +136,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* Set signal handling and alarm */

Index: check_smtp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_smtp.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- check_smtp.c	3 Dec 2004 23:02:03 -0000	1.36
+++ check_smtp.c	3 Dec 2004 23:55:29 -0000	1.37
@@ -88,7 +88,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* initialize the HELO command with the localhostname */

Index: check_game.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_game.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- check_game.c	3 Dec 2004 23:02:02 -0000	1.19
+++ check_game.c	3 Dec 2004 23:55:28 -0000	1.20
@@ -65,7 +65,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 	
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	result = STATE_OK;

Index: check_nagios.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_nagios.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- check_nagios.c	3 Dec 2004 23:02:02 -0000	1.21
+++ check_nagios.c	3 Dec 2004 23:55:28 -0000	1.22
@@ -66,7 +66,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* Set signal handling and alarm timeout */

Index: check_procs.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_procs.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- check_procs.c	3 Dec 2004 23:02:03 -0000	1.39
+++ check_procs.c	3 Dec 2004 23:55:29 -0000	1.40
@@ -120,7 +120,7 @@
 	asprintf (&metric_name, "PROCS");
 	metric = METRIC_PROCS;
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* Set signal handling and alarm timeout */

Index: negate.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/negate.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- negate.c	3 Dec 2004 20:28:53 -0000	1.22
+++ negate.c	3 Dec 2004 23:55:29 -0000	1.23
@@ -83,7 +83,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* Set signal handling and alarm */

Index: check_nt.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_nt.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- check_nt.c	3 Dec 2004 23:02:02 -0000	1.33
+++ check_nt.c	3 Dec 2004 23:55:29 -0000	1.34
@@ -116,7 +116,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if(process_arguments(argc,argv) != TRUE)
+	if(process_arguments(argc,argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 	/* initialize alarm signal handling */

Index: check_load.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_load.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- check_load.c	3 Dec 2004 20:28:52 -0000	1.25
+++ check_load.c	3 Dec 2004 23:55:28 -0000	1.26
@@ -74,7 +74,7 @@
 	bindtextdomain (PACKAGE, LOCALEDIR);
 	textdomain (PACKAGE);
 
-	if (process_arguments (argc, argv) != TRUE)
+	if (process_arguments (argc, argv) == ERROR)
 		usage4 (_("Could not parse arguments"));
 
 #if HAVE_GETLOADAVG==1





More information about the Commits mailing list