diff options
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r-- | plugins/check_dig.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 5c6f1e12..59c3b7c8 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c | |||
@@ -146,7 +146,6 @@ process_arguments (int argc, char **argv) | |||
146 | { | 146 | { |
147 | int c; | 147 | int c; |
148 | 148 | ||
149 | #ifdef HAVE_GETOPT_H | ||
150 | int option_index = 0; | 149 | int option_index = 0; |
151 | static struct option long_options[] = { | 150 | static struct option long_options[] = { |
152 | {"hostname", required_argument, 0, 'H'}, | 151 | {"hostname", required_argument, 0, 'H'}, |
@@ -156,17 +155,12 @@ process_arguments (int argc, char **argv) | |||
156 | {"help", no_argument, 0, 'h'}, | 155 | {"help", no_argument, 0, 'h'}, |
157 | {0, 0, 0, 0} | 156 | {0, 0, 0, 0} |
158 | }; | 157 | }; |
159 | #endif | ||
160 | 158 | ||
161 | if (argc < 2) | 159 | if (argc < 2) |
162 | return ERROR; | 160 | return ERROR; |
163 | 161 | ||
164 | while (1) { | 162 | while (1) { |
165 | #ifdef HAVE_GETOPT_H | ||
166 | c = getopt_long (argc, argv, "hVvt:l:H:", long_options, &option_index); | 163 | c = getopt_long (argc, argv, "hVvt:l:H:", long_options, &option_index); |
167 | #else | ||
168 | c = getopt (argc, argv, "hVvt:l:H:"); | ||
169 | #endif | ||
170 | 164 | ||
171 | if (c == -1 || c == EOF) | 165 | if (c == -1 || c == EOF) |
172 | break; | 166 | break; |