[Nagiosplug-checkins] CVS: nagiosplug/plugins negate.c,1.4,1.5

Ton Voon tonvoon at users.sourceforge.net
Wed Feb 12 14:30:08 CET 2003


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

Modified Files:
	negate.c 
Log Message:
Remove unnecessary \ and fix coredump with no parameters specified


Index: negate.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/negate.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** negate.c	13 Jan 2003 12:15:16 -0000	1.4
--- negate.c	12 Feb 2003 22:29:43 -0000	1.5
***************
*** 32,36 ****
  
  #define OPTIONS "\
! \[-t timeout] <definition of wrapped plugin>"
  
  #define LONGOPTIONS "\
--- 32,36 ----
  
  #define OPTIONS "\
! [-t timeout] <definition of wrapped plugin>"
  
  #define LONGOPTIONS "\
***************
*** 118,122 ****
  
  	if (process_arguments (argc, argv) == ERROR)
! 		usage ("Could not parse arguments");
  
  	/* Set signal handling and alarm */
--- 118,122 ----
  
  	if (process_arguments (argc, argv) == ERROR)
! 		usage ("Could not parse arguments\n");
  
  	/* Set signal handling and alarm */
***************
*** 283,286 ****
--- 283,288 ----
  validate_arguments ()
  {
+ 	if (command_line == NULL)
+ 		return ERROR;
  	return STATE_OK;
  }





More information about the Commits mailing list