summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r--plugins/check_mysql.c9
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;