summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 (GMT)
commit0c3386274ef5002dffc20337ef02407f24d7400c (patch)
tree1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_mysql.c
parentde5650f28e4e43a7264913953f95a75d8afe23f0 (diff)
downloadmonitoring-plugins-0c3386274ef5002dffc20337ef02407f24d7400c.tar.gz
convert PROGANE from a define to a const char
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@238 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r--plugins/check_mysql.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index a4a2ed1..df2ed00 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" 17const 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)
230void 230void
231print_help (void) 231print_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}