summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay.choubey@oracle.com>2012-08-07 18:58:19 +0530
committerNirbhay Choubey <nirbhay.choubey@oracle.com>2012-08-07 18:58:19 +0530
commit5ad8292c63a89db63a54f9cfed6ceb3a35656f7b (patch)
treecf7e56d23409e04f0c0e3d85fc45baddbc741c4a /extra
parentd86d06345b7cb46bce30b34e74a1d39a8df4677b (diff)
downloadmariadb-git-5ad8292c63a89db63a54f9cfed6ceb3a35656f7b.tar.gz
Bug#13928675 MYSQL CLIENT COPYRIGHT NOTICE MUST
SHOW 2012 INSTEAD OF 2011 * Added a new macro to hold the current year : COPYRIGHT_NOTICE_CURRENT_YEAR * Modified ORACLE_WELCOME_COPYRIGHT_NOTICE macro to take the initial year as parameter and pick current year from the above mentioned macro.
Diffstat (limited to 'extra')
-rw-r--r--extra/perror.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/extra/perror.c b/extra/perror.c
index b76f3fd8e55..d8e3c3a59a8 100644
--- a/extra/perror.c
+++ b/extra/perror.c
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -29,6 +29,7 @@
#include "../storage/ndb/src/kernel/error/ndbd_exit_codes.c"
#include "../storage/ndb/include/mgmapi/mgmapi_error.h"
#endif
+#include <welcome_copyright_notice.h> /* ORACLE_WELCOME_COPYRIGHT_NOTICE */
static my_bool verbose, print_all_codes;
@@ -115,7 +116,7 @@ static void print_version(void)
static void usage(void)
{
print_version();
- puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
+ puts(ORACLE_WELCOME_COPYRIGHT_NOTICE("2000"));
printf("Print a description for a system error code or a MySQL error code.\n");
printf("If you want to get the error for a negative error code, you should use\n-- before the first error code to tell perror that there was no more options.\n\n");
printf("Usage: %s [OPTIONS] [ERRORCODE [ERRORCODE...]]\n",my_progname);