X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fcheck_fping.c;h=ac203f523d3a646cd8e2dd11f54f098857cd0426;hb=97ecfa6226bea7c09f78b2b92d807e73467ffc08;hp=8887afe8eeaf647fe695da34b07d244aac18afdd;hpb=0c3386274ef5002dffc20337ef02407f24d7400c;p=nagiosplug.git diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 8887afe..ac203f5 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c @@ -202,7 +202,6 @@ process_arguments (int argc, char **argv) int c; char *rv[2]; -#ifdef HAVE_GETOPT_H int option_index = 0; static struct option long_options[] = { {"hostname", required_argument, 0, 'H'}, @@ -215,7 +214,6 @@ process_arguments (int argc, char **argv) {"help", no_argument, 0, 'h'}, {0, 0, 0, 0} }; -#endif rv[PL] = NULL; rv[RTA] = NULL; @@ -231,12 +229,7 @@ process_arguments (int argc, char **argv) } while (1) { -#ifdef HAVE_GETOPT_H - c = - getopt_long (argc, argv, "+hVvH:c:w:b:n:", long_options, &option_index); -#else - c = getopt (argc, argv, "+hVvH:c:w:b:n:"); -#endif + c = getopt_long (argc, argv, "+hVvH:c:w:b:n:", long_options, &option_index); if (c == -1 || c == EOF || c == 1) break;