[Nagiosplug-checkins] CVS: nagiosplug/plugins negate.c,1.5.2.1,1.5.2.2

Karl DeBisschop kdebisschop at users.sourceforge.net
Wed Mar 12 21:30:26 CET 2003


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

Modified Files:
      Tag: r1_3_0
	negate.c 
Log Message:
negate must be POSIXly correct in handling options, else wrapped options get passed to it

Index: negate.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/negate.c,v
retrieving revision 1.5.2.1
retrieving revision 1.5.2.2
diff -C2 -r1.5.2.1 -r1.5.2.2
*** negate.c	11 Mar 2003 22:34:11 -0000	1.5.2.1
--- negate.c	13 Mar 2003 05:29:56 -0000	1.5.2.2
***************
*** 235,242 ****
  	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)
--- 235,242 ----
  	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)





More information about the Commits mailing list