diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-11 22:22:12 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-03-11 22:22:12 +0000 |
commit | 7283211f00a3a89956d9dfc4a851dc1aaa7a1cf3 (patch) | |
tree | 371434969644a1d3cc3c5c2c26ee73cd8221aaa4 /plugins/check_fping.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_fping.c')
-rw-r--r-- | plugins/check_fping.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 8887afe8..ac203f52 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c | |||
@@ -202,7 +202,6 @@ process_arguments (int argc, char **argv) | |||
202 | int c; | 202 | int c; |
203 | char *rv[2]; | 203 | char *rv[2]; |
204 | 204 | ||
205 | #ifdef HAVE_GETOPT_H | ||
206 | int option_index = 0; | 205 | int option_index = 0; |
207 | static struct option long_options[] = { | 206 | static struct option long_options[] = { |
208 | {"hostname", required_argument, 0, 'H'}, | 207 | {"hostname", required_argument, 0, 'H'}, |
@@ -215,7 +214,6 @@ process_arguments (int argc, char **argv) | |||
215 | {"help", no_argument, 0, 'h'}, | 214 | {"help", no_argument, 0, 'h'}, |
216 | {0, 0, 0, 0} | 215 | {0, 0, 0, 0} |
217 | }; | 216 | }; |
218 | #endif | ||
219 | 217 | ||
220 | rv[PL] = NULL; | 218 | rv[PL] = NULL; |
221 | rv[RTA] = NULL; | 219 | rv[RTA] = NULL; |
@@ -231,12 +229,7 @@ process_arguments (int argc, char **argv) | |||
231 | } | 229 | } |
232 | 230 | ||
233 | while (1) { | 231 | while (1) { |
234 | #ifdef HAVE_GETOPT_H | 232 | c = getopt_long (argc, argv, "+hVvH:c:w:b:n:", long_options, &option_index); |
235 | c = | ||
236 | getopt_long (argc, argv, "+hVvH:c:w:b:n:", long_options, &option_index); | ||
237 | #else | ||
238 | c = getopt (argc, argv, "+hVvH:c:w:b:n:"); | ||
239 | #endif | ||
240 | 233 | ||
241 | if (c == -1 || c == EOF || c == 1) | 234 | if (c == -1 || c == EOF || c == 1) |
242 | break; | 235 | break; |