X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fcheck_nt.c;h=c7baa474215a9c4553657514fc280c12918710e6;hb=11b35b92e3195d230bef359f6a0679ae4414716b;hp=1c9dc0adac0c1d29fce17a1c26093cca5f75c190;hpb=d714b3811dae812838c01b9b0bb1d766a62dcc2f;p=nagiosplug.git diff --git a/plugins/check_nt.c b/plugins/check_nt.c index 1c9dc0a..c7baa47 100644 --- a/plugins/check_nt.c +++ b/plugins/check_nt.c @@ -387,7 +387,6 @@ int main(int argc, char **argv){ int process_arguments(int argc, char **argv){ int c; -#ifdef HAVE_GETOPT_H int option_index = 0; static struct option long_options[] = { @@ -401,7 +400,6 @@ int process_arguments(int argc, char **argv){ {"help", no_argument, 0,'h'}, {0,0,0,0} }; -#endif /* no options were supplied */ if(argc<2) return ERROR; @@ -424,11 +422,7 @@ int process_arguments(int argc, char **argv){ } while (1){ -#ifdef HAVE_GETOPT_H c = getopt_long(argc,argv,"+hVH:t:c:w:p:v:l:s:d:",long_options,&option_index); -#else - c = getopt(argc,argv,"+hVH:t:c:w:p:v:l:s:d:"); -#endif if (c==-1||c==EOF||c==1) break;