diff options
-rw-r--r-- | plugins/check_by_ssh.c | 2 | ||||
-rw-r--r-- | plugins/check_dig.c | 2 | ||||
-rw-r--r-- | plugins/check_disk.c | 2 | ||||
-rw-r--r-- | plugins/check_dns.c | 3 | ||||
-rw-r--r-- | plugins/check_fping.c | 2 | ||||
-rw-r--r-- | plugins/check_game.c | 2 | ||||
-rw-r--r-- | plugins/check_hpjd.c | 2 | ||||
-rw-r--r-- | plugins/check_ldap.c | 2 | ||||
-rw-r--r-- | plugins/check_load.c | 2 | ||||
-rw-r--r-- | plugins/check_mrtg.c | 2 | ||||
-rw-r--r-- | plugins/check_mrtgtraf.c | 2 | ||||
-rw-r--r-- | plugins/check_mysql.c | 2 | ||||
-rw-r--r-- | plugins/check_nagios.c | 2 | ||||
-rw-r--r-- | plugins/check_nt.c | 2 | ||||
-rw-r--r-- | plugins/check_nwstat.c | 2 | ||||
-rw-r--r-- | plugins/check_overcr.c | 2 | ||||
-rw-r--r-- | plugins/check_pgsql.c | 2 | ||||
-rw-r--r-- | plugins/check_ping.c | 2 | ||||
-rw-r--r-- | plugins/check_procs.c | 2 | ||||
-rw-r--r-- | plugins/check_radius.c | 2 | ||||
-rw-r--r-- | plugins/check_real.c | 2 | ||||
-rw-r--r-- | plugins/check_smtp.c | 2 | ||||
-rw-r--r-- | plugins/check_snmp.c | 2 | ||||
-rw-r--r-- | plugins/check_ssh.c | 2 | ||||
-rw-r--r-- | plugins/check_swap.c | 2 | ||||
-rw-r--r-- | plugins/check_tcp.c | 2 | ||||
-rw-r--r-- | plugins/check_time.c | 2 | ||||
-rw-r--r-- | plugins/check_udp.c | 2 | ||||
-rw-r--r-- | plugins/check_ups.c | 2 | ||||
-rw-r--r-- | plugins/check_users.c | 2 | ||||
-rw-r--r-- | plugins/negate.c | 2 |
31 files changed, 31 insertions, 32 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 8f6cde9..20ae6283 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) == ERROR) | 71 | if (process_arguments (argc, argv) != TRUE) |
72 | usage (_("check_by_ssh: could not parse arguments\n")); | 72 | usage (_("check_by_ssh: could not parse arguments\n")); |
73 | 73 | ||
74 | 74 | ||
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index a500cdc..14c0da5 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 | usage (_("Cannot catch SIGALRM\n")); | 69 | usage (_("Cannot catch SIGALRM\n")); |
70 | 70 | ||
71 | if (process_arguments (argc, argv) != OK) | 71 | if (process_arguments (argc, argv) != TRUE) |
72 | usage (_("Could not parse arguments\n")); | 72 | usage (_("Could not parse arguments\n")); |
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 437bbbf..0cab9ac 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) != OK) | 166 | if (process_arguments (argc, argv) != TRUE) |
167 | usage (_("check_disk: could not parse arguments\n")); | 167 | usage (_("check_disk: could not parse arguments\n")); |
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 9ab001f..d64431a 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -72,9 +72,8 @@ main (int argc, char **argv) | |||
72 | return STATE_UNKNOWN; | 72 | return STATE_UNKNOWN; |
73 | } | 73 | } |
74 | 74 | ||
75 | if (process_arguments (argc, argv) != OK) { | 75 | if (process_arguments (argc, argv) != TRUE) { |
76 | usage (_("check_dns: could not parse arguments\n")); | 76 | usage (_("check_dns: could not parse arguments\n")); |
77 | return STATE_UNKNOWN; | ||
78 | } | 77 | } |
79 | 78 | ||
80 | /* get the command to run */ | 79 | /* get the command to run */ |
diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 8647330..74236d9 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c | |||
@@ -67,7 +67,7 @@ main (int argc, char **argv) | |||
67 | bindtextdomain (PACKAGE, LOCALEDIR); | 67 | bindtextdomain (PACKAGE, LOCALEDIR); |
68 | textdomain (PACKAGE); | 68 | textdomain (PACKAGE); |
69 | 69 | ||
70 | if (process_arguments (argc, argv) == ERROR) | 70 | if (process_arguments (argc, argv) != TRUE) |
71 | usage (_("check_fping: could not parse arguments\n")); | 71 | usage (_("check_fping: could not parse arguments\n")); |
72 | 72 | ||
73 | server = strscpy (server, server_name); | 73 | server = strscpy (server, server_name); |
diff --git a/plugins/check_game.c b/plugins/check_game.c index 3a8b9f5..c8492d8 100644 --- a/plugins/check_game.c +++ b/plugins/check_game.c | |||
@@ -67,7 +67,7 @@ main (int argc, char **argv) | |||
67 | 67 | ||
68 | // result = process_arguments (argc, argv); | 68 | // result = process_arguments (argc, argv); |
69 | 69 | ||
70 | if (process_arguments (argc, argv) != OK) | 70 | if (process_arguments (argc, argv) != TRUE) |
71 | usage (_("check_game: could not parse arguments\n")); | 71 | usage (_("check_game: could not parse arguments\n")); |
72 | 72 | ||
73 | /* if (result != OK) { | 73 | /* if (result != OK) { |
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index af6044a..5fdfc8a 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c | |||
@@ -84,7 +84,7 @@ main (int argc, char **argv) | |||
84 | bindtextdomain (PACKAGE, LOCALEDIR); | 84 | bindtextdomain (PACKAGE, LOCALEDIR); |
85 | textdomain (PACKAGE); | 85 | textdomain (PACKAGE); |
86 | 86 | ||
87 | if (process_arguments (argc, argv) != OK) | 87 | if (process_arguments (argc, argv) != TRUE) |
88 | usage (_("check_hpjd: could not parse arguments\n")); | 88 | usage (_("check_hpjd: could not parse arguments\n")); |
89 | 89 | ||
90 | /* removed ' 2>1' at end of command 10/27/1999 - EG */ | 90 | /* removed ' 2>1' at end of command 10/27/1999 - EG */ |
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 0dc0380..07b89ac 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c | |||
@@ -72,7 +72,7 @@ main (int argc, char *argv[]) | |||
72 | bindtextdomain (PACKAGE, LOCALEDIR); | 72 | bindtextdomain (PACKAGE, LOCALEDIR); |
73 | textdomain (PACKAGE); | 73 | textdomain (PACKAGE); |
74 | 74 | ||
75 | if (process_arguments (argc, argv) == ERROR) | 75 | if (process_arguments (argc, argv) != TRUE) |
76 | usage (_("check_ldap: could not parse arguments\n")); | 76 | usage (_("check_ldap: could not parse arguments\n")); |
77 | 77 | ||
78 | /* initialize alarm signal handling */ | 78 | /* initialize alarm signal handling */ |
diff --git a/plugins/check_load.c b/plugins/check_load.c index 616c3e0..8322dbb 100644 --- a/plugins/check_load.c +++ b/plugins/check_load.c | |||
@@ -73,7 +73,7 @@ main (int argc, char **argv) | |||
73 | bindtextdomain (PACKAGE, LOCALEDIR); | 73 | bindtextdomain (PACKAGE, LOCALEDIR); |
74 | textdomain (PACKAGE); | 74 | textdomain (PACKAGE); |
75 | 75 | ||
76 | if (process_arguments (argc, argv) != OK) | 76 | if (process_arguments (argc, argv) != TRUE) |
77 | usage (_("check_load: could not parse arguments\n")); | 77 | usage (_("check_load: could not parse arguments\n")); |
78 | 78 | ||
79 | #if HAVE_GETLOADAVG==1 | 79 | #if HAVE_GETLOADAVG==1 |
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c index 2badd4a..58717bf 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) != OK) | 62 | if (process_arguments (argc, argv) != TRUE) |
63 | usage (_("check_mrtg: could not parse arguments\n")); | 63 | usage (_("check_mrtg: 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 b9c277b..5bbce50 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) != OK) | 65 | if (process_arguments (argc, argv) != TRUE) |
66 | usage (_("check_ldap: could not parse arguments\n")); | 66 | usage (_("check_ldap: could not parse arguments\n")); |
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 703a1ba..0564f7c 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c | |||
@@ -55,7 +55,7 @@ main (int argc, char **argv) | |||
55 | bindtextdomain (PACKAGE, LOCALEDIR); | 55 | bindtextdomain (PACKAGE, LOCALEDIR); |
56 | textdomain (PACKAGE); | 56 | textdomain (PACKAGE); |
57 | 57 | ||
58 | if (process_arguments (argc, argv) != OK) | 58 | if (process_arguments (argc, argv) != TRUE) |
59 | usage (_("check_mysql: could not parse arguments\n")); | 59 | usage (_("check_mysql: could not parse arguments\n")); |
60 | 60 | ||
61 | /* initialize mysql */ | 61 | /* initialize mysql */ |
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index bb2ae6d..7c36d11 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.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) != OK) | 68 | if (process_arguments (argc, argv) != TRUE) |
69 | usage (_("check_nagios: could not parse arguments\n")); | 69 | usage (_("check_nagios: could not parse arguments\n")); |
70 | 70 | ||
71 | /* Set signal handling and alarm */ | 71 | /* Set signal handling and alarm */ |
diff --git a/plugins/check_nt.c b/plugins/check_nt.c index 15f3dc3..c7fc745 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c | |||
@@ -110,7 +110,7 @@ int main(int argc, char **argv){ | |||
110 | bindtextdomain (PACKAGE, LOCALEDIR); | 110 | bindtextdomain (PACKAGE, LOCALEDIR); |
111 | textdomain (PACKAGE); | 111 | textdomain (PACKAGE); |
112 | 112 | ||
113 | if(process_arguments(argc,argv) != OK) | 113 | if(process_arguments(argc,argv) != TRUE) |
114 | usage (_("check_nt: could not parse arguments\n")); | 114 | usage (_("check_nt: could not parse arguments\n")); |
115 | 115 | ||
116 | /* initialize alarm signal handling */ | 116 | /* initialize alarm signal handling */ |
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c index 6a21f90..a6d2e24 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) != OK) | 124 | if (process_arguments(argc,argv) != TRUE) |
125 | usage (_("check_nwstat: could not parse arguments\n")); | 125 | usage (_("check_nwstat: could not parse arguments\n")); |
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 fea87da..cb85dc6 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) != OK) | 88 | if (process_arguments (argc, argv) != TRUE) |
89 | usage (_("check_overcr: could not parse arguments\n")); | 89 | usage (_("check_overcr: could not parse arguments\n")); |
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 bbf47f0..5c3b810 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c | |||
@@ -132,7 +132,7 @@ main (int argc, char **argv) | |||
132 | bindtextdomain (PACKAGE, LOCALEDIR); | 132 | bindtextdomain (PACKAGE, LOCALEDIR); |
133 | textdomain (PACKAGE); | 133 | textdomain (PACKAGE); |
134 | 134 | ||
135 | if (process_arguments (argc, argv) != OK) | 135 | if (process_arguments (argc, argv) != TRUE) |
136 | usage (_("check_pgsql: could not parse arguments\n")); | 136 | usage (_("check_pgsql: could not parse arguments\n")); |
137 | 137 | ||
138 | /* Set signal handling and alarm */ | 138 | /* Set signal handling and alarm */ |
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 0e09054..6d8ef06 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) != OK) | 81 | if (process_arguments (argc, argv) != TRUE) |
82 | usage (_("check_ping: could not parse arguments\n")); | 82 | usage (_("check_ping: could not parse arguments\n")); |
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 b7f32c7..d1e1b7c 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c | |||
@@ -115,7 +115,7 @@ main (int argc, char **argv) | |||
115 | asprintf (&metric_name, "PROCS"); | 115 | asprintf (&metric_name, "PROCS"); |
116 | metric = METRIC_PROCS; | 116 | metric = METRIC_PROCS; |
117 | 117 | ||
118 | if (process_arguments (argc, argv) != OK) | 118 | if (process_arguments (argc, argv) != TRUE) |
119 | usage (_("check_procs: could not parse arguments\n")); | 119 | usage (_("check_procs: could not parse arguments\n")); |
120 | 120 | ||
121 | /* Set signal handling and alarm timeout */ | 121 | /* Set signal handling and alarm timeout */ |
diff --git a/plugins/check_radius.c b/plugins/check_radius.c index b15ad6e..405b417 100644 --- a/plugins/check_radius.c +++ b/plugins/check_radius.c | |||
@@ -112,7 +112,7 @@ main (int argc, char **argv) | |||
112 | bindtextdomain (PACKAGE, LOCALEDIR); | 112 | bindtextdomain (PACKAGE, LOCALEDIR); |
113 | textdomain (PACKAGE); | 113 | textdomain (PACKAGE); |
114 | 114 | ||
115 | if (process_arguments (argc, argv) != OK) | 115 | if (process_arguments (argc, argv) != TRUE) |
116 | usage (_("check_radius: could not parse arguments\n")); | 116 | usage (_("check_radius: could not parse arguments\n")); |
117 | 117 | ||
118 | str = strdup ("dictionary"); | 118 | str = strdup ("dictionary"); |
diff --git a/plugins/check_real.c b/plugins/check_real.c index 59ad7d0..9a8f42a 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) != OK) | 67 | if (process_arguments (argc, argv) != TRUE) |
68 | usage (_("check_real: could not parse arguments\n")); | 68 | usage (_("check_real: could not parse arguments\n")); |
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 696af65..3322494 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) != OK) | 91 | if (process_arguments (argc, argv) != TRUE) |
92 | usage (_("check_smtp: could not parse arguments\n")); | 92 | usage (_("check_smtp: could not parse arguments\n")); |
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 5167eb5..c7dff3d 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) != OK) | 159 | if (process_arguments (argc, argv) != TRUE) |
160 | usage (_("check_snmp: could not parse arguments\n")); | 160 | usage (_("check_snmp: could not parse arguments\n")); |
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 46dd044..f9bbd12 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) != OK) | 60 | if (process_arguments (argc, argv) != TRUE) |
61 | usage (_("check_ssh: could not parse arguments\n")); | 61 | usage (_("check_ssh: could not parse arguments\n")); |
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 064c65e..f2d722c 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) != OK) | 92 | if (process_arguments (argc, argv) != TRUE) |
93 | usage (_("Incorrect arguments supplied\n")); | 93 | usage (_("Incorrect arguments supplied\n")); |
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 da70c5d..ed51e94 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) != OK) | 242 | if (process_arguments (argc, argv) != TRUE) |
243 | usage (_("check_tcp: could not parse arguments\n")); | 243 | usage (_("check_tcp: could not parse arguments\n")); |
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 7c4fe41..042a7d5 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) != OK) | 65 | if (process_arguments (argc, argv) != TRUE) |
66 | usage (_("check_time: could not parse arguments\n")); | 66 | usage (_("check_time: could not parse arguments\n")); |
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 3706a72..fb7cae1 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) != OK) | 54 | if (process_arguments (argc, argv) != TRUE) |
55 | usage (_("check_udp: could not parse arguments\n")); | 55 | usage (_("check_udp: could not parse arguments\n")); |
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 78e17b0..4006031 100644 --- a/plugins/check_ups.c +++ b/plugins/check_ups.c | |||
@@ -111,7 +111,7 @@ main (int argc, char **argv) | |||
111 | data = strdup (""); | 111 | data = strdup (""); |
112 | message = strdup (""); | 112 | message = strdup (""); |
113 | 113 | ||
114 | if (process_arguments (argc, argv) != OK) | 114 | if (process_arguments (argc, argv) != TRUE) |
115 | usage (_("check_ups: could not parse arguments\n")); | 115 | usage (_("check_ups: could not parse arguments\n")); |
116 | 116 | ||
117 | /* initialize alarm signal handling */ | 117 | /* initialize alarm signal handling */ |
diff --git a/plugins/check_users.c b/plugins/check_users.c index 0417bad..23f8973 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) == ERROR) | 53 | if (process_arguments (argc, argv) != TRUE) |
54 | usage (_("check_users: could not parse arguments\n")); | 54 | usage (_("check_users: could not parse arguments\n")); |
55 | 55 | ||
56 | /* run the command */ | 56 | /* run the command */ |
diff --git a/plugins/negate.c b/plugins/negate.c index 93ef46b..02838a6 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) != OK) | 86 | if (process_arguments (argc, argv) != TRUE) |
87 | usage (_("negate: could not parse arguments\n")); | 87 | usage (_("negate: could not parse arguments\n")); |
88 | 88 | ||
89 | /* Set signal handling and alarm */ | 89 | /* Set signal handling and alarm */ |