summaryrefslogtreecommitdiffstats
path: root/client/mysql_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/mysql_plugin.c')
-rw-r--r--client/mysql_plugin.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/client/mysql_plugin.c b/client/mysql_plugin.c
index a96af015..44abe861 100644
--- a/client/mysql_plugin.c
+++ b/client/mysql_plugin.c
@@ -15,17 +15,14 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
*/
+#define VER "1.0"
#include <my_global.h>
#include <m_string.h>
#include <mysql.h>
#include <my_getopt.h>
#include <my_dir.h>
#include <mysql_version.h>
-
-#define SHOW_VERSION "1.0.0"
-#define PRINT_VERSION do { printf("%s Ver %s Distrib %s\n", \
- my_progname, SHOW_VERSION, MYSQL_SERVER_VERSION); \
- } while(0)
+#include <welcome_copyright_notice.h>
/* Global variables. */
static uint my_end_arg= 0;
@@ -418,7 +415,7 @@ exit:
static void usage(void)
{
- PRINT_VERSION;
+ print_version();
puts("Copyright (c) 2011, 2015, Oracle and/or its affiliates. "
"All rights reserved.\n");
puts("Enable or disable plugins.");
@@ -504,7 +501,7 @@ get_one_option(const struct my_option *opt,
opt_verbose++;
break;
case 'V':
- PRINT_VERSION;
+ print_version();
exit(0);
break;
case '?':