summaryrefslogtreecommitdiffstats
path: root/plugins/check_nwstat.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_nwstat.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_nwstat.c')
-rw-r--r--plugins/check_nwstat.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index 2f7ecc1..100be12 100644
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
@@ -622,7 +622,6 @@ int main(int argc, char **argv){
622int process_arguments(int argc, char **argv){ 622int process_arguments(int argc, char **argv){
623 int c; 623 int c;
624 624
625#ifdef HAVE_GETOPT_H
626 int option_index = 0; 625 int option_index = 0;
627 static struct option long_options[] = 626 static struct option long_options[] =
628 { 627 {
@@ -637,7 +636,6 @@ int process_arguments(int argc, char **argv){
637 {"help", no_argument, 0,'h'}, 636 {"help", no_argument, 0,'h'},
638 {0,0,0,0} 637 {0,0,0,0}
639 }; 638 };
640#endif
641 639
642 /* no options were supplied */ 640 /* no options were supplied */
643 if(argc<2) return ERROR; 641 if(argc<2) return ERROR;
@@ -660,11 +658,7 @@ int process_arguments(int argc, char **argv){
660 } 658 }
661 659
662 while (1){ 660 while (1){
663#ifdef HAVE_GETOPT_H
664 c = getopt_long(argc,argv,"+hoVH:t:c:w:p:v:",long_options,&option_index); 661 c = getopt_long(argc,argv,"+hoVH:t:c:w:p:v:",long_options,&option_index);
665#else
666 c = getopt(argc,argv,"+hoVH:t:c:w:p:v:");
667#endif
668 662
669 if (c==-1||c==EOF||c==1) 663 if (c==-1||c==EOF||c==1)
670 break; 664 break;
@@ -797,13 +791,8 @@ void print_usage(void)
797 printf 791 printf
798 ("Usage:\n" 792 ("Usage:\n"
799 " %s %s\n" 793 " %s %s\n"
800#ifdef HAVE_GETOPT_H
801 " %s (-h | --help) for detailed help\n" 794 " %s (-h | --help) for detailed help\n"
802 " %s (-V | --version) for version information\n", 795 " %s (-V | --version) for version information\n",
803#else
804 " %s -h for detailed help\n"
805 " %s -V for version information\n",
806#endif
807 progname, OPTIONS, progname, progname); 796 progname, OPTIONS, progname, progname);
808} 797}
809 798