diff options
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 5645779d..ad5eb25f 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; |