Code

afs checking
[nagiosplug.git] / plugins / check_hpjd.c
index 267de2e04f6edce4d14529574fd27ef0c194b485..d8583724391aadcc644ea91fac3d9d0015b16e2d 100644 (file)
@@ -390,7 +390,6 @@ process_arguments (int argc, char **argv)
 {
        int c;
 
-#ifdef HAVE_GETOPT_H
        int option_index = 0;
        static struct option long_options[] = {
                {"hostname", required_argument, 0, 'H'},
@@ -402,18 +401,13 @@ process_arguments (int argc, char **argv)
                {"help", no_argument, 0, 'h'},
                {0, 0, 0, 0}
        };
-#endif
 
        if (argc < 2)
                return ERROR;
 
        
        while (1) {
-#ifdef HAVE_GETOPT_H
                c = getopt_long (argc, argv, "+hVH:C:", long_options, &option_index);
-#else
-               c = getopt (argc, argv, "+?hVH:C:");
-#endif
 
                if (c == -1 || c == EOF || c == 1)
                        break;