[Nagiosplug-checkins] CVS: nagiosplug/plugins negate.c,1.6,1.7

Ton Voon tonvoon at users.sourceforge.net
Tue Mar 11 14:37:03 CET 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv15504

Modified Files:
	negate.c 
Log Message:
Remove getopt_long checks


Index: negate.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/negate.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** negate.c	11 Mar 2003 22:29:46 -0000	1.6
--- negate.c	11 Mar 2003 22:36:03 -0000	1.7
***************
*** 190,200 ****
  {
  	printf ("Usage:\n" " %s %s\n"
- #ifdef HAVE_GETOPT_H
  					" %s (-h | --help) for detailed help\n"
  					" %s (-V | --version) for version information\n",
- #else
- 					" %s -h for detailed help\n"
- 					" %s -V for version information\n",
- #endif
  					progname, OPTIONS, progname, progname);
  }
--- 190,195 ----
***************
*** 223,227 ****
  	int c;
  
- #ifdef HAVE_GETOPT_H
  	int option_index = 0;
  	static struct option long_options[] = {
--- 218,221 ----
***************
*** 231,243 ****
  		{0, 0, 0, 0}
  	};
- #endif
  
  	while (1) {
- #ifdef HAVE_GETOPT_H
  		c = getopt_long (argc, argv, "hVt:",
  		                 long_options, &option_index);
! #else
! 		c = getopt (argc, argv, "hVt:");
! #endif
  		if (c == -1 || c == EOF)
  			break;
--- 225,233 ----
  		{0, 0, 0, 0}
  	};
  
  	while (1) {
  		c = getopt_long (argc, argv, "hVt:",
  		                 long_options, &option_index);
! 
  		if (c == -1 || c == EOF)
  			break;





More information about the Commits mailing list