From 7283211f00a3a89956d9dfc4a851dc1aaa7a1cf3 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Tue, 11 Mar 2003 22:22:12 +0000 Subject: Remove getopt_long checks git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@396 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_ide-smart.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'plugins/check_ide-smart.c') diff --git a/plugins/check_ide-smart.c b/plugins/check_ide-smart.c index 869f7dc0..47d9d840 100644 --- a/plugins/check_ide-smart.c +++ b/plugins/check_ide-smart.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #define NR_ATTRIBUTES 30 @@ -342,7 +341,6 @@ main (int argc, char *argv[]) int o, longindex; int retval = 0; -#ifdef HAVE_GETOPT_H const struct option longopts[] = { {"device", required_argument, 0, 'd'}, {"immediate", no_argument, 0, 'i'}, @@ -354,16 +352,10 @@ main (int argc, char *argv[]) {"version", no_argument, 0, 'V'}, {0, 0, 0, 0} }; -#endif /* */ while (1) { -#ifdef HAVE_GETOPT_H o = getopt_long (argc, argv, "+d:iq10nhV", longopts, &longindex); -#else /* */ - o = getopt (argc, argv, "+d:iq10nhV"); - -#endif /* */ if (o == -1 || o == EOF) break; switch (o) { -- cgit v1.2.3-74-g34f1