summaryrefslogtreecommitdiffstats
path: root/plugins/check_fping.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_fping.c')
-rw-r--r--plugins/check_fping.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 8887afe8..ac203f52 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -202,7 +202,6 @@ process_arguments (int argc, char **argv)
202 int c; 202 int c;
203 char *rv[2]; 203 char *rv[2];
204 204
205#ifdef HAVE_GETOPT_H
206 int option_index = 0; 205 int option_index = 0;
207 static struct option long_options[] = { 206 static struct option long_options[] = {
208 {"hostname", required_argument, 0, 'H'}, 207 {"hostname", required_argument, 0, 'H'},
@@ -215,7 +214,6 @@ process_arguments (int argc, char **argv)
215 {"help", no_argument, 0, 'h'}, 214 {"help", no_argument, 0, 'h'},
216 {0, 0, 0, 0} 215 {0, 0, 0, 0}
217 }; 216 };
218#endif
219 217
220 rv[PL] = NULL; 218 rv[PL] = NULL;
221 rv[RTA] = NULL; 219 rv[RTA] = NULL;
@@ -231,12 +229,7 @@ process_arguments (int argc, char **argv)
231 } 229 }
232 230
233 while (1) { 231 while (1) {
234#ifdef HAVE_GETOPT_H 232 c = getopt_long (argc, argv, "+hVvH:c:w:b:n:", long_options, &option_index);
235 c =
236 getopt_long (argc, argv, "+hVvH:c:w:b:n:", long_options, &option_index);
237#else
238 c = getopt (argc, argv, "+hVvH:c:w:b:n:");
239#endif
240 233
241 if (c == -1 || c == EOF || c == 1) 234 if (c == -1 || c == EOF || c == 1)
242 break; 235 break;