[Nagiosplug-checkins] CVS: nagiosplug/plugins utils.c,1.24,1.25

Karl DeBisschop kdebisschop at users.sourceforge.net
Mon Jul 28 22:50:09 CEST 2003


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

Modified Files:
	utils.c 
Log Message:
clean up warnings about ill-formed comment and string concatenation

Index: utils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/utils.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** utils.c	26 Jul 2003 04:06:33 -0000	1.24
--- utils.c	29 Jul 2003 05:49:23 -0000	1.25
***************
*** 19,22 ****
--- 19,23 ----
  #include <arpa/inet.h>
  
+ extern void print_usage (void);
  extern int timeout_interval;
  extern const char *progname;
***************
*** 58,62 ****
  
  /* **************************************************************************
!  /* max_state(STATE_x, STATE_y)
   * compares STATE_x to  STATE_y and returns result based on the following
   * STATE_UNKNOWN < STATE_OK < STATE_WARNING < STATE_CRITICAL
--- 59,63 ----
  
  /* **************************************************************************
!  * max_state(STATE_x, STATE_y)
   * compares STATE_x to  STATE_y and returns result based on the following
   * STATE_UNKNOWN < STATE_OK < STATE_WARNING < STATE_CRITICAL
***************
*** 110,117 ****
  support (void)
  {
! 	printf
! 		("Send email to nagios-users at lists.sourceforge.net if you have questions\n"
! 		 "regarding use of this software. To submit patches or suggest improvements,\n"
! 		 "send email to nagiosplug-devel at lists.sourceforge.net\n");
  }
  
--- 111,118 ----
  support (void)
  {
! 	printf (_("\n\
! Send email to nagios-users at lists.sourceforge.net if you have questions\n\
! regarding use of this software. To submit patches or suggest improvements,\n\
! send email to nagiosplug-devel at lists.sourceforge.net\n"));
  }
  
***************
*** 135,143 ****
  		strncpy (plugin_revision, "N/A", STRLEN);
  	printf ("%s (%s %s) %s\n",
! 					progname, PACKAGE, VERSION, plugin_revision);
! 	printf
! 		("The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n"
! 		 "copies of the plugins under the terms of the GNU General Public License.\n"
! 		 "For more information about these matters, see the file named COPYING.\n");
  
  }
--- 136,144 ----
  		strncpy (plugin_revision, "N/A", STRLEN);
  	printf ("%s (%s %s) %s\n",
! 					command_name, PACKAGE, VERSION, plugin_revision);
! 	printf (_("\
! The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\n\
! copies of the plugins under the terms of the GNU General Public License.\n\
! For more information about these matters, see the file named COPYING.\n"));
  
  }





More information about the Commits mailing list