summaryrefslogtreecommitdiffstats
path: root/plugins/check_dig.c
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-03-11 22:22:12 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2003-03-11 22:22:12 (GMT)
commit7283211f00a3a89956d9dfc4a851dc1aaa7a1cf3 (patch)
tree371434969644a1d3cc3c5c2c26ee73cd8221aaa4 /plugins/check_dig.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_dig.c')
-rw-r--r--plugins/check_dig.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 5c6f1e1..59c3b7c 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -146,7 +146,6 @@ process_arguments (int argc, char **argv)
146{ 146{
147 int c; 147 int c;
148 148
149#ifdef HAVE_GETOPT_H
150 int option_index = 0; 149 int option_index = 0;
151 static struct option long_options[] = { 150 static struct option long_options[] = {
152 {"hostname", required_argument, 0, 'H'}, 151 {"hostname", required_argument, 0, 'H'},
@@ -156,17 +155,12 @@ process_arguments (int argc, char **argv)
156 {"help", no_argument, 0, 'h'}, 155 {"help", no_argument, 0, 'h'},
157 {0, 0, 0, 0} 156 {0, 0, 0, 0}
158 }; 157 };
159#endif
160 158
161 if (argc < 2) 159 if (argc < 2)
162 return ERROR; 160 return ERROR;
163 161
164 while (1) { 162 while (1) {
165#ifdef HAVE_GETOPT_H
166 c = getopt_long (argc, argv, "hVvt:l:H:", long_options, &option_index); 163 c = getopt_long (argc, argv, "hVvt:l:H:", long_options, &option_index);
167#else
168 c = getopt (argc, argv, "hVvt:l:H:");
169#endif
170 164
171 if (c == -1 || c == EOF) 165 if (c == -1 || c == EOF)
172 break; 166 break;