diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-02 22:08:31 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-02 22:08:31 (GMT) |
commit | 0b8d32f76dbc8a508e8cad3af55c21b632704028 (patch) | |
tree | 2daa8ab0269721c1ca59305fe0b8e7c528cc169d /plugins/check_mysql.c | |
parent | 561da286a12ae7abb9d120b7ca87ffe46a225250 (diff) | |
download | monitoring-plugins-0b8d32f76dbc8a508e8cad3af55c21b632704028.tar.gz |
markup for translation
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@635 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r-- | plugins/check_mysql.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index a18397d..16a1f13 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c | |||
@@ -25,8 +25,6 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net"; | |||
25 | #include <mysql/mysql.h> | 25 | #include <mysql/mysql.h> |
26 | #include <mysql/errmsg.h> | 26 | #include <mysql/errmsg.h> |
27 | 27 | ||
28 | unsigned int db_port = MYSQL_PORT; | ||
29 | |||
30 | void | 28 | void |
31 | print_usage (void) | 29 | print_usage (void) |
32 | { | 30 | { |
@@ -39,6 +37,9 @@ Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password]\n"), | |||
39 | void | 37 | void |
40 | print_help (void) | 38 | print_help (void) |
41 | { | 39 | { |
40 | char *myport; | ||
41 | asprintf (&myport, "%d", MYSQL_PORT); | ||
42 | |||
42 | print_revision (progname, revision); | 43 | print_revision (progname, revision); |
43 | 44 | ||
44 | printf (_(COPYRIGHT), copyright, email); | 45 | printf (_(COPYRIGHT), copyright, email); |
@@ -49,7 +50,7 @@ print_help (void) | |||
49 | 50 | ||
50 | printf (_(UT_HELP_VRSN)); | 51 | printf (_(UT_HELP_VRSN)); |
51 | 52 | ||
52 | printf (_(UT_HOST_PORT), 'P', atoi(MYSQL_PORT)); | 53 | printf (_(UT_HOST_PORT), 'P', myport); |
53 | 54 | ||
54 | printf (_("\ | 55 | printf (_("\ |
55 | -d, --database=STRING\n\ | 56 | -d, --database=STRING\n\ |
@@ -72,6 +73,7 @@ char *db_user = ""; | |||
72 | char *db_host = ""; | 73 | char *db_host = ""; |
73 | char *db_pass = ""; | 74 | char *db_pass = ""; |
74 | char *db = ""; | 75 | char *db = ""; |
76 | unsigned int db_port = MYSQL_PORT; | ||
75 | 77 | ||
76 | int process_arguments (int, char **); | 78 | int process_arguments (int, char **); |
77 | int validate_arguments (void); | 79 | int validate_arguments (void); |