summaryrefslogtreecommitdiffstats
path: root/plugins/check_smtp.c
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-03-11 22:22:12 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2003-03-11 22:22:12 +0000
commit7283211f00a3a89956d9dfc4a851dc1aaa7a1cf3 (patch)
tree371434969644a1d3cc3c5c2c26ee73cd8221aaa4 /plugins/check_smtp.c
parentd7ba5ec38b51731d4ddc0a7f6e9f30897f70f156 (diff)
downloadmonitoring-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_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