diff options
Diffstat (limited to 'plugins/check_by_ssh.c')
-rw-r--r-- | plugins/check_by_ssh.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 0cffaeb2..866044bd 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c | |||
@@ -174,7 +174,6 @@ process_arguments (int argc, char **argv) | |||
174 | char *p1, *p2; | 174 | char *p1, *p2; |
175 | size_t len; | 175 | size_t len; |
176 | 176 | ||
177 | #ifdef HAVE_GETOPT_H | ||
178 | int option_index = 0; | 177 | int option_index = 0; |
179 | static struct option long_options[] = { | 178 | static struct option long_options[] = { |
180 | {"version", no_argument, 0, 'V'}, | 179 | {"version", no_argument, 0, 'V'}, |
@@ -195,7 +194,6 @@ process_arguments (int argc, char **argv) | |||
195 | {"use-ipv6", no_argument, 0, '6'}, | 194 | {"use-ipv6", no_argument, 0, '6'}, |
196 | {0, 0, 0, 0} | 195 | {0, 0, 0, 0} |
197 | }; | 196 | }; |
198 | #endif | ||
199 | 197 | ||
200 | if (argc < 2) | 198 | if (argc < 2) |
201 | return ERROR; | 199 | return ERROR; |
@@ -205,13 +203,8 @@ process_arguments (int argc, char **argv) | |||
205 | strcpy (argv[c], "-t"); | 203 | strcpy (argv[c], "-t"); |
206 | 204 | ||
207 | while (1) { | 205 | while (1) { |
208 | #ifdef HAVE_GETOPT_H | 206 | c = getopt_long (argc, argv, "Vvh46ft:H:O:p:i:u:l:C:n:s:", long_options, |
209 | c = | ||
210 | getopt_long (argc, argv, "Vvh46ft:H:O:p:i:u:l:C:n:s:", long_options, | ||
211 | &option_index); | 207 | &option_index); |
212 | #else | ||
213 | c = getopt (argc, argv, "Vvh46ft:H:O:p:i:u:l:C:n:s:"); | ||
214 | #endif | ||
215 | 208 | ||
216 | if (c == -1 || c == EOF) | 209 | if (c == -1 || c == EOF) |
217 | break; | 210 | break; |