diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-11 22:22:12 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-11 22:22:12 (GMT) |
commit | 7283211f00a3a89956d9dfc4a851dc1aaa7a1cf3 (patch) | |
tree | 371434969644a1d3cc3c5c2c26ee73cd8221aaa4 /plugins/check_swap.c | |
parent | d7ba5ec38b51731d4ddc0a7f6e9f30897f70f156 (diff) | |
download | monitoring-plugins-7283211f00a3a89956d9dfc4a851dc1aaa7a1cf3.tar.gz |
Remove getopt_long checks
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@396 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r-- | plugins/check_swap.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 5645779..ad5eb25 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
@@ -198,7 +198,6 @@ process_arguments (int argc, char **argv) | |||
198 | int wc = 0; /* warning counter */ | 198 | int wc = 0; /* warning counter */ |
199 | int cc = 0; /* critical counter */ | 199 | int cc = 0; /* critical counter */ |
200 | 200 | ||
201 | #ifdef HAVE_GETOPT_H | ||
202 | int option_index = 0; | 201 | int option_index = 0; |
203 | static struct option long_options[] = { | 202 | static struct option long_options[] = { |
204 | {"warning", required_argument, 0, 'w'}, | 203 | {"warning", required_argument, 0, 'w'}, |
@@ -209,17 +208,12 @@ process_arguments (int argc, char **argv) | |||
209 | {"help", no_argument, 0, 'h'}, | 208 | {"help", no_argument, 0, 'h'}, |
210 | {0, 0, 0, 0} | 209 | {0, 0, 0, 0} |
211 | }; | 210 | }; |
212 | #endif | ||
213 | 211 | ||
214 | if (argc < 2) | 212 | if (argc < 2) |
215 | return ERROR; | 213 | return ERROR; |
216 | 214 | ||
217 | while (1) { | 215 | while (1) { |
218 | #ifdef HAVE_GETOPT_H | ||
219 | c = getopt_long (argc, argv, "+?Vvhac:w:", long_options, &option_index); | 216 | c = getopt_long (argc, argv, "+?Vvhac:w:", long_options, &option_index); |
220 | #else | ||
221 | c = getopt (argc, argv, "+?Vvhac:w:"); | ||
222 | #endif | ||
223 | 217 | ||
224 | if (c == -1 || c == EOF) | 218 | if (c == -1 || c == EOF) |
225 | break; | 219 | break; |