summaryrefslogtreecommitdiffstats
path: root/plugins/check_smtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_smtp.c')
-rw-r--r--plugins/check_smtp.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index f78d1126..5e980bcc 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -192,7 +192,6 @@ process_arguments (int argc, char **argv)
192{ 192{
193 int c; 193 int c;
194 194
195#ifdef HAVE_GETOPT_H
196 int option_index = 0; 195 int option_index = 0;
197 static struct option long_options[] = { 196 static struct option long_options[] = {
198 {"hostname", required_argument, 0, 'H'}, 197 {"hostname", required_argument, 0, 'H'},
@@ -206,7 +205,6 @@ process_arguments (int argc, char **argv)
206 {"help", no_argument, 0, 'h'}, 205 {"help", no_argument, 0, 'h'},
207 {0, 0, 0, 0} 206 {0, 0, 0, 0}
208 }; 207 };
209#endif
210 208
211 if (argc < 2) 209 if (argc < 2)
212 return ERROR; 210 return ERROR;
@@ -221,13 +219,9 @@ process_arguments (int argc, char **argv)
221 } 219 }
222 220
223 while (1) { 221 while (1) {
224#ifdef HAVE_GETOPT_H 222 c = getopt_long (argc, argv, "+hVvt:p:f:e:c:w:H:", long_options,
225 c =
226 getopt_long (argc, argv, "+hVvt:p:f:e:c:w:H:", long_options,
227 &option_index); 223 &option_index);
228#else 224
229 c = getopt (argc, argv, "+?hVvt:p:f:e:c:w:H:");
230#endif
231 if (c == -1 || c == EOF) 225 if (c == -1 || c == EOF)
232 break; 226 break;
233 227