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_mysql.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_mysql.c')
-rw-r--r-- | plugins/check_mysql.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 18324c8..3074814 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c | |||
@@ -126,7 +126,6 @@ process_arguments (int argc, char **argv) | |||
126 | { | 126 | { |
127 | int c; | 127 | int c; |
128 | 128 | ||
129 | #ifdef HAVE_GETOPT_H | ||
130 | int option_index = 0; | 129 | int option_index = 0; |
131 | static struct option long_options[] = { | 130 | static struct option long_options[] = { |
132 | {"hostname", required_argument, 0, 'H'}, | 131 | {"hostname", required_argument, 0, 'H'}, |
@@ -139,18 +138,12 @@ process_arguments (int argc, char **argv) | |||
139 | {"help", no_argument, 0, 'h'}, | 138 | {"help", no_argument, 0, 'h'}, |
140 | {0, 0, 0, 0} | 139 | {0, 0, 0, 0} |
141 | }; | 140 | }; |
142 | #endif | ||
143 | 141 | ||
144 | if (argc < 1) | 142 | if (argc < 1) |
145 | return ERROR; | 143 | return ERROR; |
146 | 144 | ||
147 | while (1) { | 145 | while (1) { |
148 | #ifdef HAVE_GETOPT_H | 146 | c = getopt_long (argc, argv, "hVP:p:u:d:H:", long_options, &option_index); |
149 | c = | ||
150 | getopt_long (argc, argv, "hVP:p:u:d:H:", long_options, &option_index); | ||
151 | #else | ||
152 | c = getopt (argc, argv, "hVP:p:u:d:H:"); | ||
153 | #endif | ||
154 | 147 | ||
155 | if (c == -1 || c == EOF) | 148 | if (c == -1 || c == EOF) |
156 | break; | 149 | break; |