summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-03 23:55:29 +0000
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-03 23:55:29 +0000
commit30a4266a3a624abbbaace89141f1369ecb5367aa (patch)
tree1ca30ee6a4ab8782b7eec4c623263669aecff054 /plugins
parentc298d847a3b8afe122876bfb2d75f68edc696605 (diff)
downloadmonitoring-plugins-30a4266a3a624abbbaace89141f1369ecb5367aa.tar.gz
reverting my changes from !=TRUE to == ERROR, that's not good ;-( sorry
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@998 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_by_ssh.c2
-rw-r--r--plugins/check_dig.c2
-rw-r--r--plugins/check_disk.c2
-rw-r--r--plugins/check_dns.c2
-rw-r--r--plugins/check_fping.c2
-rw-r--r--plugins/check_game.c2
-rw-r--r--plugins/check_hpjd.c2
-rw-r--r--plugins/check_http.c2
-rw-r--r--plugins/check_ldap.c2
-rw-r--r--plugins/check_load.c2
-rw-r--r--plugins/check_mrtg.c2
-rw-r--r--plugins/check_mrtgtraf.c2
-rw-r--r--plugins/check_mysql.c2
-rw-r--r--plugins/check_nagios.c2
-rw-r--r--plugins/check_nt.c2
-rw-r--r--plugins/check_nwstat.c2
-rw-r--r--plugins/check_overcr.c2
-rw-r--r--plugins/check_pgsql.c2
-rw-r--r--plugins/check_ping.c2
-rw-r--r--plugins/check_procs.c2
-rw-r--r--plugins/check_radius.c2
-rw-r--r--plugins/check_real.c2
-rw-r--r--plugins/check_smtp.c2
-rw-r--r--plugins/check_snmp.c2
-rw-r--r--plugins/check_ssh.c2
-rw-r--r--plugins/check_swap.c2
-rw-r--r--plugins/check_tcp.c2
-rw-r--r--plugins/check_time.c2
-rw-r--r--plugins/check_udp.c2
-rw-r--r--plugins/check_ups.c2
-rw-r--r--plugins/check_users.c2
-rw-r--r--plugins/negate.c2
32 files changed, 32 insertions, 32 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index cc2ec75b..6d0f4c2c 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -68,7 +68,7 @@ main (int argc, char **argv)
68 textdomain (PACKAGE); 68 textdomain (PACKAGE);
69 69
70 /* process arguments */ 70 /* process arguments */
71 if (process_arguments (argc, argv) != TRUE) 71 if (process_arguments (argc, argv) == ERROR)
72 usage4 (_("Could not parse arguments")); 72 usage4 (_("Could not parse arguments"));
73 73
74 /* Set signal handling and alarm timeout */ 74 /* Set signal handling and alarm timeout */
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 8f88316f..39071868 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -68,7 +68,7 @@ main (int argc, char **argv)
68 if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) 68 if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR)
69 usage4 (_("Cannot catch SIGALRM")); 69 usage4 (_("Cannot catch SIGALRM"));
70 70
71 if (process_arguments (argc, argv) != TRUE) 71 if (process_arguments (argc, argv) == ERROR)
72 usage4 (_("Could not parse arguments")); 72 usage4 (_("Could not parse arguments"));
73 73
74 /* get the command to run */ 74 /* get the command to run */
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 71a68079..669a1cd6 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -163,7 +163,7 @@ main (int argc, char **argv)
163 163
164 mount_list = read_filesystem_list (0); 164 mount_list = read_filesystem_list (0);
165 165
166 if (process_arguments (argc, argv) != TRUE) 166 if (process_arguments (argc, argv) == ERROR)
167 usage4 (_("Could not parse arguments")); 167 usage4 (_("Could not parse arguments"));
168 168
169 for (me = mount_list; me; me = me->me_next) { 169 for (me = mount_list; me; me = me->me_next) {
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 2a8f4592..55165fcb 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -71,7 +71,7 @@ main (int argc, char **argv)
71 usage4 (_("Cannot catch SIGALRM")); 71 usage4 (_("Cannot catch SIGALRM"));
72 } 72 }
73 73
74 if (process_arguments (argc, argv) != TRUE) { 74 if (process_arguments (argc, argv) == ERROR) {
75 usage4 (_("Could not parse arguments")); 75 usage4 (_("Could not parse arguments"));
76 } 76 }
77 77
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index ce62a7c8..7f05d4d5 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -69,7 +69,7 @@ main (int argc, char **argv)
69 bindtextdomain (PACKAGE, LOCALEDIR); 69 bindtextdomain (PACKAGE, LOCALEDIR);
70 textdomain (PACKAGE); 70 textdomain (PACKAGE);
71 71
72 if (process_arguments (argc, argv) != TRUE) 72 if (process_arguments (argc, argv) == ERROR)
73 usage4 (_("Could not parse arguments")); 73 usage4 (_("Could not parse arguments"));
74 74
75 server = strscpy (server, server_name); 75 server = strscpy (server, server_name);
diff --git a/plugins/check_game.c b/plugins/check_game.c
index c0f9a47d..9a6e53e7 100644
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
@@ -65,7 +65,7 @@ main (int argc, char **argv)
65 bindtextdomain (PACKAGE, LOCALEDIR); 65 bindtextdomain (PACKAGE, LOCALEDIR);
66 textdomain (PACKAGE); 66 textdomain (PACKAGE);
67 67
68 if (process_arguments (argc, argv) != TRUE) 68 if (process_arguments (argc, argv) == ERROR)
69 usage4 (_("Could not parse arguments")); 69 usage4 (_("Could not parse arguments"));
70 70
71 result = STATE_OK; 71 result = STATE_OK;
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 678d5c80..d49661ad 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -85,7 +85,7 @@ main (int argc, char **argv)
85 bindtextdomain (PACKAGE, LOCALEDIR); 85 bindtextdomain (PACKAGE, LOCALEDIR);
86 textdomain (PACKAGE); 86 textdomain (PACKAGE);
87 87
88 if (process_arguments (argc, argv) != TRUE) 88 if (process_arguments (argc, argv) == ERROR)
89 usage4 (_("Could not parse arguments")); 89 usage4 (_("Could not parse arguments"));
90 90
91 /* removed ' 2>1' at end of command 10/27/1999 - EG */ 91 /* removed ' 2>1' at end of command 10/27/1999 - EG */
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 3ff834b3..c0b18fc8 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -145,7 +145,7 @@ main (int argc, char **argv)
145 asprintf (&user_agent, "User-Agent: check_http/%s (nagios-plugins %s)", 145 asprintf (&user_agent, "User-Agent: check_http/%s (nagios-plugins %s)",
146 clean_revstring (revision), VERSION); 146 clean_revstring (revision), VERSION);
147 147
148 if (process_arguments (argc, argv) != TRUE) 148 if (process_arguments (argc, argv) == ERROR)
149 usage4 (_("Could not parse arguments")); 149 usage4 (_("Could not parse arguments"));
150 150
151 if (strstr (timestamp, ":")) { 151 if (strstr (timestamp, ":")) {
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index dfdd8374..e77ad308 100644
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
@@ -74,7 +74,7 @@ main (int argc, char *argv[])
74 bindtextdomain (PACKAGE, LOCALEDIR); 74 bindtextdomain (PACKAGE, LOCALEDIR);
75 textdomain (PACKAGE); 75 textdomain (PACKAGE);
76 76
77 if (process_arguments (argc, argv) != TRUE) 77 if (process_arguments (argc, argv) == ERROR)
78 usage4 (_("Could not parse arguments")); 78 usage4 (_("Could not parse arguments"));
79 79
80 /* initialize alarm signal handling */ 80 /* initialize alarm signal handling */
diff --git a/plugins/check_load.c b/plugins/check_load.c
index d9833b64..1b7865c7 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -74,7 +74,7 @@ main (int argc, char **argv)
74 bindtextdomain (PACKAGE, LOCALEDIR); 74 bindtextdomain (PACKAGE, LOCALEDIR);
75 textdomain (PACKAGE); 75 textdomain (PACKAGE);
76 76
77 if (process_arguments (argc, argv) != TRUE) 77 if (process_arguments (argc, argv) == ERROR)
78 usage4 (_("Could not parse arguments")); 78 usage4 (_("Could not parse arguments"));
79 79
80#if HAVE_GETLOADAVG==1 80#if HAVE_GETLOADAVG==1
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index cf3cc851..f895321f 100644
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.c
@@ -59,7 +59,7 @@ main (int argc, char **argv)
59 bindtextdomain (PACKAGE, LOCALEDIR); 59 bindtextdomain (PACKAGE, LOCALEDIR);
60 textdomain (PACKAGE); 60 textdomain (PACKAGE);
61 61
62 if (process_arguments (argc, argv) != TRUE) 62 if (process_arguments (argc, argv) == ERROR)
63 usage4 (_("Could not parse arguments\n")); 63 usage4 (_("Could not parse arguments\n"));
64 64
65 /* open the MRTG log file for reading */ 65 /* open the MRTG log file for reading */
diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c
index 0f7afbc8..096b3bde 100644
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
@@ -62,7 +62,7 @@ main (int argc, char **argv)
62 char incoming_speed_rating[8]; 62 char incoming_speed_rating[8];
63 char outgoing_speed_rating[8]; 63 char outgoing_speed_rating[8];
64 64
65 if (process_arguments (argc, argv) != TRUE) 65 if (process_arguments (argc, argv) == ERROR)
66 usage4 (_("Could not parse arguments")); 66 usage4 (_("Could not parse arguments"));
67 67
68 /* open the MRTG log file for reading */ 68 /* open the MRTG log file for reading */
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 1061fabd..1e7a82f9 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -59,7 +59,7 @@ main (int argc, char **argv)
59 bindtextdomain (PACKAGE, LOCALEDIR); 59 bindtextdomain (PACKAGE, LOCALEDIR);
60 textdomain (PACKAGE); 60 textdomain (PACKAGE);
61 61
62 if (process_arguments (argc, argv) != TRUE) 62 if (process_arguments (argc, argv) == ERROR)
63 usage4 (_("Could not parse arguments")); 63 usage4 (_("Could not parse arguments"));
64 64
65 /* initialize mysql */ 65 /* initialize mysql */
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 29abc2a8..b567fe10 100644
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
@@ -66,7 +66,7 @@ main (int argc, char **argv)
66 bindtextdomain (PACKAGE, LOCALEDIR); 66 bindtextdomain (PACKAGE, LOCALEDIR);
67 textdomain (PACKAGE); 67 textdomain (PACKAGE);
68 68
69 if (process_arguments (argc, argv) != TRUE) 69 if (process_arguments (argc, argv) == ERROR)
70 usage4 (_("Could not parse arguments")); 70 usage4 (_("Could not parse arguments"));
71 71
72 /* Set signal handling and alarm timeout */ 72 /* Set signal handling and alarm timeout */
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index 4826d687..03a7c5d6 100644
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
@@ -116,7 +116,7 @@ int main(int argc, char **argv){
116 bindtextdomain (PACKAGE, LOCALEDIR); 116 bindtextdomain (PACKAGE, LOCALEDIR);
117 textdomain (PACKAGE); 117 textdomain (PACKAGE);
118 118
119 if(process_arguments(argc,argv) != TRUE) 119 if(process_arguments(argc,argv) == ERROR)
120 usage4 (_("Could not parse arguments")); 120 usage4 (_("Could not parse arguments"));
121 121
122 /* initialize alarm signal handling */ 122 /* initialize alarm signal handling */
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index 4dffba3e..53e3f1d7 100644
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
@@ -121,7 +121,7 @@ main(int argc, char **argv) {
121 bindtextdomain (PACKAGE, LOCALEDIR); 121 bindtextdomain (PACKAGE, LOCALEDIR);
122 textdomain (PACKAGE); 122 textdomain (PACKAGE);
123 123
124 if (process_arguments(argc,argv) != TRUE) 124 if (process_arguments(argc,argv) == ERROR)
125 usage4 (_("Could not parse arguments")); 125 usage4 (_("Could not parse arguments"));
126 126
127 /* initialize alarm signal handling */ 127 /* initialize alarm signal handling */
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index 8fb1ef40..756402bd 100644
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.c
@@ -85,7 +85,7 @@ main (int argc, char **argv)
85 bindtextdomain (PACKAGE, LOCALEDIR); 85 bindtextdomain (PACKAGE, LOCALEDIR);
86 textdomain (PACKAGE); 86 textdomain (PACKAGE);
87 87
88 if (process_arguments (argc, argv) != TRUE) 88 if (process_arguments (argc, argv) == ERROR)
89 usage4 (_("Could not parse arguments")); 89 usage4 (_("Could not parse arguments"));
90 90
91 /* initialize alarm signal handling */ 91 /* initialize alarm signal handling */
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index a0025712..e66eeaff 100644
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
@@ -136,7 +136,7 @@ main (int argc, char **argv)
136 bindtextdomain (PACKAGE, LOCALEDIR); 136 bindtextdomain (PACKAGE, LOCALEDIR);
137 textdomain (PACKAGE); 137 textdomain (PACKAGE);
138 138
139 if (process_arguments (argc, argv) != TRUE) 139 if (process_arguments (argc, argv) == ERROR)
140 usage4 (_("Could not parse arguments")); 140 usage4 (_("Could not parse arguments"));
141 141
142 /* Set signal handling and alarm */ 142 /* Set signal handling and alarm */
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 9fe71831..4778fcf9 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -78,7 +78,7 @@ main (int argc, char **argv)
78 addresses = malloc (sizeof(char*) * max_addr); 78 addresses = malloc (sizeof(char*) * max_addr);
79 addresses[0] = NULL; 79 addresses[0] = NULL;
80 80
81 if (process_arguments (argc, argv) != TRUE) 81 if (process_arguments (argc, argv) == ERROR)
82 usage4 (_("Could not parse arguments")); 82 usage4 (_("Could not parse arguments"));
83 83
84 /* Set signal handling and alarm */ 84 /* Set signal handling and alarm */
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 5742b727..f2fc2e5b 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -120,7 +120,7 @@ main (int argc, char **argv)
120 asprintf (&metric_name, "PROCS"); 120 asprintf (&metric_name, "PROCS");
121 metric = METRIC_PROCS; 121 metric = METRIC_PROCS;
122 122
123 if (process_arguments (argc, argv) != TRUE) 123 if (process_arguments (argc, argv) == ERROR)
124 usage4 (_("Could not parse arguments")); 124 usage4 (_("Could not parse arguments"));
125 125
126 /* Set signal handling and alarm timeout */ 126 /* Set signal handling and alarm timeout */
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index bdb9b7aa..9e104686 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -113,7 +113,7 @@ main (int argc, char **argv)
113 bindtextdomain (PACKAGE, LOCALEDIR); 113 bindtextdomain (PACKAGE, LOCALEDIR);
114 textdomain (PACKAGE); 114 textdomain (PACKAGE);
115 115
116 if (process_arguments (argc, argv) != TRUE) 116 if (process_arguments (argc, argv) == ERROR)
117 usage4 (_("Could not parse arguments")); 117 usage4 (_("Could not parse arguments"));
118 118
119 str = strdup ("dictionary"); 119 str = strdup ("dictionary");
diff --git a/plugins/check_real.c b/plugins/check_real.c
index f8431726..492848c7 100644
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
@@ -64,7 +64,7 @@ main (int argc, char **argv)
64 bindtextdomain (PACKAGE, LOCALEDIR); 64 bindtextdomain (PACKAGE, LOCALEDIR);
65 textdomain (PACKAGE); 65 textdomain (PACKAGE);
66 66
67 if (process_arguments (argc, argv) != TRUE) 67 if (process_arguments (argc, argv) == ERROR)
68 usage4 (_("Could not parse arguments")); 68 usage4 (_("Could not parse arguments"));
69 69
70 /* initialize alarm signal handling */ 70 /* initialize alarm signal handling */
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index d8346426..f12b69e9 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -88,7 +88,7 @@ main (int argc, char **argv)
88 bindtextdomain (PACKAGE, LOCALEDIR); 88 bindtextdomain (PACKAGE, LOCALEDIR);
89 textdomain (PACKAGE); 89 textdomain (PACKAGE);
90 90
91 if (process_arguments (argc, argv) != TRUE) 91 if (process_arguments (argc, argv) == ERROR)
92 usage4 (_("Could not parse arguments")); 92 usage4 (_("Could not parse arguments"));
93 93
94 /* initialize the HELO command with the localhostname */ 94 /* initialize the HELO command with the localhostname */
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 18b7f2f4..6fae3d1f 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -156,7 +156,7 @@ main (int argc, char **argv)
156 output_delim = strdup (DEFAULT_OUTPUT_DELIMITER); 156 output_delim = strdup (DEFAULT_OUTPUT_DELIMITER);
157 miblist = strdup (DEFAULT_MIBLIST); 157 miblist = strdup (DEFAULT_MIBLIST);
158 158
159 if (process_arguments (argc, argv) != TRUE) 159 if (process_arguments (argc, argv) == ERROR)
160 usage4 (_("Could not parse arguments")); 160 usage4 (_("Could not parse arguments"));
161 161
162 /* create the command line to execute */ 162 /* create the command line to execute */
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index 04916a55..e957c053 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -57,7 +57,7 @@ main (int argc, char **argv)
57 bindtextdomain (PACKAGE, LOCALEDIR); 57 bindtextdomain (PACKAGE, LOCALEDIR);
58 textdomain (PACKAGE); 58 textdomain (PACKAGE);
59 59
60 if (process_arguments (argc, argv) != TRUE) 60 if (process_arguments (argc, argv) == ERROR)
61 usage4 (_("Could not parse arguments")); 61 usage4 (_("Could not parse arguments"));
62 62
63 /* initialize alarm signal handling */ 63 /* initialize alarm signal handling */
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index 2e5f5c7c..4e17163c 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -89,7 +89,7 @@ main (int argc, char **argv)
89 tmp_status = strdup (""); 89 tmp_status = strdup ("");
90 perf = strdup (""); 90 perf = strdup ("");
91 91
92 if (process_arguments (argc, argv) != TRUE) 92 if (process_arguments (argc, argv) == ERROR)
93 usage4 (_("Could not parse arguments")); 93 usage4 (_("Could not parse arguments"));
94 94
95#ifdef HAVE_PROC_MEMINFO 95#ifdef HAVE_PROC_MEMINFO
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 8dacf599..418438a3 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -239,7 +239,7 @@ main (int argc, char **argv)
239 server_quit = QUIT; 239 server_quit = QUIT;
240 status = strdup (""); 240 status = strdup ("");
241 241
242 if (process_arguments (argc, argv) != TRUE) 242 if (process_arguments (argc, argv) == ERROR)
243 usage4 (_("Could not parse arguments")); 243 usage4 (_("Could not parse arguments"));
244 244
245 /* use default expect if none listed in process_arguments() */ 245 /* use default expect if none listed in process_arguments() */
diff --git a/plugins/check_time.c b/plugins/check_time.c
index b2e53745..dae2dd5a 100644
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
@@ -62,7 +62,7 @@ main (int argc, char **argv)
62 bindtextdomain (PACKAGE, LOCALEDIR); 62 bindtextdomain (PACKAGE, LOCALEDIR);
63 textdomain (PACKAGE); 63 textdomain (PACKAGE);
64 64
65 if (process_arguments (argc, argv) != TRUE) 65 if (process_arguments (argc, argv) == ERROR)
66 usage4 (_("Could not parse arguments")); 66 usage4 (_("Could not parse arguments"));
67 67
68 /* initialize alarm signal handling */ 68 /* initialize alarm signal handling */
diff --git a/plugins/check_udp.c b/plugins/check_udp.c
index e446b933..aa8be1c2 100644
--- a/plugins/check_udp.c
+++ b/plugins/check_udp.c
@@ -51,7 +51,7 @@ main (int argc, char **argv)
51 bindtextdomain (PACKAGE, LOCALEDIR); 51 bindtextdomain (PACKAGE, LOCALEDIR);
52 textdomain (PACKAGE); 52 textdomain (PACKAGE);
53 53
54 if (process_arguments (argc, argv) != TRUE) 54 if (process_arguments (argc, argv) == ERROR)
55 usage4 (_("Could not parse arguments")); 55 usage4 (_("Could not parse arguments"));
56 56
57 /* initialize alarm signal handling */ 57 /* initialize alarm signal handling */
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index 8383b093..a4d76503 100644
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
@@ -110,7 +110,7 @@ main (int argc, char **argv)
110 data = strdup (""); 110 data = strdup ("");
111 message = strdup (""); 111 message = strdup ("");
112 112
113 if (process_arguments (argc, argv) != TRUE) 113 if (process_arguments (argc, argv) == ERROR)
114 usage4 (_("Could not parse arguments")); 114 usage4 (_("Could not parse arguments"));
115 115
116 /* initialize alarm signal handling */ 116 /* initialize alarm signal handling */
diff --git a/plugins/check_users.c b/plugins/check_users.c
index 2c24623d..d1b4f018 100644
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
@@ -50,7 +50,7 @@ main (int argc, char **argv)
50 50
51 perf = strdup(""); 51 perf = strdup("");
52 52
53 if (process_arguments (argc, argv) != TRUE) 53 if (process_arguments (argc, argv) == ERROR)
54 usage4 (_("Could not parse arguments")); 54 usage4 (_("Could not parse arguments"));
55 55
56 /* run the command */ 56 /* run the command */
diff --git a/plugins/negate.c b/plugins/negate.c
index 74a9a9dd..e35ddb9e 100644
--- a/plugins/negate.c
+++ b/plugins/negate.c
@@ -83,7 +83,7 @@ main (int argc, char **argv)
83 bindtextdomain (PACKAGE, LOCALEDIR); 83 bindtextdomain (PACKAGE, LOCALEDIR);
84 textdomain (PACKAGE); 84 textdomain (PACKAGE);
85 85
86 if (process_arguments (argc, argv) != TRUE) 86 if (process_arguments (argc, argv) == ERROR)
87 usage4 (_("Could not parse arguments")); 87 usage4 (_("Could not parse arguments"));
88 88
89 /* Set signal handling and alarm */ 89 /* Set signal handling and alarm */