diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-11 22:22:12 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-11 22:22:12 (GMT) |
commit | 7283211f00a3a89956d9dfc4a851dc1aaa7a1cf3 (patch) | |
tree | 371434969644a1d3cc3c5c2c26ee73cd8221aaa4 /plugins/check_by_ssh.c | |
parent | d7ba5ec38b51731d4ddc0a7f6e9f30897f70f156 (diff) | |
download | monitoring-plugins-7283211f00a3a89956d9dfc4a851dc1aaa7a1cf3.tar.gz |
Remove getopt_long checks
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@396 f882894a-f735-0410-b71e-b25c423dba1c
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 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) | |||
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; |