[Nagiosplug-checkins] CVS: nagiosplug/plugins check_mysql.c,1.9,1.10

Karl DeBisschop kdebisschop at users.sourceforge.net
Sat Aug 2 15:09:01 CEST 2003


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

Modified Files:
	check_mysql.c 
Log Message:
markup for translation

Index: check_mysql.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_mysql.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** check_mysql.c	2 Aug 2003 22:06:06 -0000	1.9
--- check_mysql.c	2 Aug 2003 22:08:31 -0000	1.10
***************
*** 26,31 ****
  #include <mysql/errmsg.h>
  
- unsigned int db_port = MYSQL_PORT;
- 
  void
  print_usage (void)
--- 26,29 ----
***************
*** 40,43 ****
--- 38,44 ----
  print_help (void)
  {
+ 	char *myport;
+ 	asprintf (&myport, "%d", MYSQL_PORT);
+ 
  	print_revision (progname, revision);
  
***************
*** 50,54 ****
  	printf (_(UT_HELP_VRSN));
  
! 	printf (_(UT_HOST_PORT), 'P', atoi(MYSQL_PORT));
  
  	printf (_("\
--- 51,55 ----
  	printf (_(UT_HELP_VRSN));
  
! 	printf (_(UT_HOST_PORT), 'P', myport);
  
  	printf (_("\
***************
*** 73,76 ****
--- 74,78 ----
  char *db_pass = "";
  char *db = "";
+ unsigned int db_port = MYSQL_PORT;
  
  int process_arguments (int, char **);





More information about the Commits mailing list