summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 561da28)
raw | patch | inline | side by side (parent: 561da28)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Sat, 2 Aug 2003 22:08:31 +0000 (22:08 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Sat, 2 Aug 2003 22:08:31 +0000 (22:08 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@635 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_mysql.c | patch | blob | history |
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index a18397d81adfe9d43a9d9e96c61f8fd99b517fd1..16a1f1335cf8f68f23575e21beebe5bbf679b357 100644 (file)
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
#include <mysql/mysql.h>
#include <mysql/errmsg.h>
-unsigned int db_port = MYSQL_PORT;
-
void
print_usage (void)
{
void
print_help (void)
{
+ char *myport;
+ asprintf (&myport, "%d", MYSQL_PORT);
+
print_revision (progname, revision);
printf (_(COPYRIGHT), copyright, email);
printf (_(UT_HELP_VRSN));
- printf (_(UT_HOST_PORT), 'P', atoi(MYSQL_PORT));
+ printf (_(UT_HOST_PORT), 'P', myport);
printf (_("\
-d, --database=STRING\n\
char *db_host = "";
char *db_pass = "";
char *db = "";
+unsigned int db_port = MYSQL_PORT;
int process_arguments (int, char **);
int validate_arguments (void);