X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fcheck_by_ssh.c;h=866044bd3b9e62975e538c908a5d149d77f19110;hb=831d03cd768cb4d1f96d3cabd6262a0a55f904e7;hp=0cffaeb2ef251c81e77bd4e5c6aa8efb6fc343f7;hpb=95c6efcc5eb8f8d2fcf4c1a6a9f9067d0ec2ba6c;p=nagiosplug.git diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 0cffaeb..866044b 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c @@ -174,7 +174,6 @@ process_arguments (int argc, char **argv) char *p1, *p2; size_t len; -#ifdef HAVE_GETOPT_H int option_index = 0; static struct option long_options[] = { {"version", no_argument, 0, 'V'}, @@ -195,7 +194,6 @@ process_arguments (int argc, char **argv) {"use-ipv6", no_argument, 0, '6'}, {0, 0, 0, 0} }; -#endif if (argc < 2) return ERROR; @@ -205,13 +203,8 @@ process_arguments (int argc, char **argv) strcpy (argv[c], "-t"); while (1) { -#ifdef HAVE_GETOPT_H - c = - getopt_long (argc, argv, "Vvh46ft:H:O:p:i:u:l:C:n:s:", long_options, + c = getopt_long (argc, argv, "Vvh46ft:H:O:p:i:u:l:C:n:s:", long_options, &option_index); -#else - c = getopt (argc, argv, "Vvh46ft:H:O:p:i:u:l:C:n:s:"); -#endif if (c == -1 || c == EOF) break;