diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-05-18 22:05:43 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-05-18 22:05:43 (GMT) |
commit | a8cd7705e7898d77764aa12ddcc2e29de1860138 (patch) | |
tree | 970f609cbecbe515998907fd55a12f814ad2edcd /plugins-root | |
parent | 08394ddb2d62ec8aab9121e45ab9c1a102e85ba4 (diff) | |
download | monitoring-plugins-a8cd7705e7898d77764aa12ddcc2e29de1860138.tar.gz |
Synchronise with coreutils 2.95. Gettext now synced with coreutils,
so no longer development platform requirement
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1394 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-root')
-rw-r--r-- | plugins-root/.cvsignore | 2 | ||||
-rw-r--r-- | plugins-root/check_dhcp.c | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/plugins-root/.cvsignore b/plugins-root/.cvsignore index e3a6259..70dc174 100644 --- a/plugins-root/.cvsignore +++ b/plugins-root/.cvsignore | |||
@@ -1,5 +1,7 @@ | |||
1 | .deps | 1 | .deps |
2 | .libs | ||
2 | Makefile.in | 3 | Makefile.in |
3 | Makefile | 4 | Makefile |
4 | check_dhcp | 5 | check_dhcp |
5 | check_icmp | 6 | check_icmp |
7 | pst3 | ||
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index a3e0c53..836bafb 100644 --- a/plugins-root/check_dhcp.c +++ b/plugins-root/check_dhcp.c | |||
@@ -101,7 +101,6 @@ long mac_addr_dlpi( const char *, int, u_char *); | |||
101 | 101 | ||
102 | #endif | 102 | #endif |
103 | 103 | ||
104 | #define HAVE_GETOPT_H | ||
105 | 104 | ||
106 | 105 | ||
107 | /**** Common definitions ****/ | 106 | /**** Common definitions ****/ |
@@ -976,7 +975,6 @@ int call_getopt(int argc, char **argv){ | |||
976 | int i=0; | 975 | int i=0; |
977 | struct in_addr ipaddress; | 976 | struct in_addr ipaddress; |
978 | 977 | ||
979 | #ifdef HAVE_GETOPT_H | ||
980 | int option_index = 0; | 978 | int option_index = 0; |
981 | static struct option long_options[] = | 979 | static struct option long_options[] = |
982 | { | 980 | { |
@@ -989,14 +987,9 @@ int call_getopt(int argc, char **argv){ | |||
989 | {"help", no_argument, 0,'h'}, | 987 | {"help", no_argument, 0,'h'}, |
990 | {0,0,0,0} | 988 | {0,0,0,0} |
991 | }; | 989 | }; |
992 | #endif | ||
993 | 990 | ||
994 | while(1){ | 991 | while(1){ |
995 | #ifdef HAVE_GETOPT_H | ||
996 | c=getopt_long(argc,argv,"+hVvt:s:r:t:i:",long_options,&option_index); | 992 | c=getopt_long(argc,argv,"+hVvt:s:r:t:i:",long_options,&option_index); |
997 | #else | ||
998 | c=getopt(argc,argv,"+?hVvt:s:r:t:i:"); | ||
999 | #endif | ||
1000 | 993 | ||
1001 | i++; | 994 | i++; |
1002 | 995 | ||