diff options
Diffstat (limited to 'plugins/check_mysql.c')
| -rw-r--r-- | plugins/check_mysql.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index a4a2ed1d..df2ed002 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * This plugin is for testing a mysql server. | 14 | * This plugin is for testing a mysql server. |
| 15 | ******************************************************************************/ | 15 | ******************************************************************************/ |
| 16 | 16 | ||
| 17 | #define PROGNAME "check_mysql" | 17 | const char *progname = "check_mysql" |
| 18 | #define REVISION "$Revision$" | 18 | #define REVISION "$Revision$" |
| 19 | #define COPYRIGHT "1999-2002" | 19 | #define COPYRIGHT "1999-2002" |
| 20 | 20 | ||
| @@ -178,7 +178,7 @@ process_arguments (int argc, char **argv) | |||
| 178 | db_port = atoi (optarg); | 178 | db_port = atoi (optarg); |
| 179 | break; | 179 | break; |
| 180 | case 'V': /* version */ | 180 | case 'V': /* version */ |
| 181 | print_revision (PROGNAME, REVISION); | 181 | print_revision (progname, REVISION); |
| 182 | exit (STATE_OK); | 182 | exit (STATE_OK); |
| 183 | case 'h': /* help */ | 183 | case 'h': /* help */ |
| 184 | print_help (); | 184 | print_help (); |
| @@ -230,7 +230,7 @@ validate_arguments (void) | |||
| 230 | void | 230 | void |
| 231 | print_help (void) | 231 | print_help (void) |
| 232 | { | 232 | { |
| 233 | print_revision (PROGNAME, REVISION); | 233 | print_revision (progname, REVISION); |
| 234 | printf | 234 | printf |
| 235 | ("Copyright (c) 2000 Didi Rieder/Karl DeBisschop\n\n" | 235 | ("Copyright (c) 2000 Didi Rieder/Karl DeBisschop\n\n" |
| 236 | "This plugin is for testing a mysql server.\n"); | 236 | "This plugin is for testing a mysql server.\n"); |
| @@ -267,5 +267,5 @@ print_usage (void) | |||
| 267 | printf | 267 | printf |
| 268 | ("Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password]\n" | 268 | ("Usage: %s [-d database] [-H host] [-P port] [-u user] [-p password]\n" |
| 269 | " %s --help\n" | 269 | " %s --help\n" |
| 270 | " %s --version\n", PROGNAME, PROGNAME, PROGNAME); | 270 | " %s --version\n", progname, progname, progname); |
| 271 | } | 271 | } |
