summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-09-09 19:31:29 +0200
committerSergei Golubchik <sergii@pisem.net>2013-09-09 19:31:29 +0200
commit42f56557f59705aeec83a54f02399b04d52e9eea (patch)
tree69db851f78adb21b42f9898f501934f669d64a91 /plugin
parent92265da9d77bc750eb234cfac9d6239675078983 (diff)
downloadmariadb-git-42f56557f59705aeec83a54f02399b04d52e9eea.tar.gz
MDEV-4941 make: AIX fails with 'Identifier not allowed in cast'; syntax error in include/my_global.h
C++ comments in C files, and a typo in my_global.h
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auth_examples/qa_auth_interface.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugin/auth_examples/qa_auth_interface.c b/plugin/auth_examples/qa_auth_interface.c
index ddf51a3dd19..c9bc6c5aae4 100644
--- a/plugin/auth_examples/qa_auth_interface.c
+++ b/plugin/auth_examples/qa_auth_interface.c
@@ -52,11 +52,11 @@ static int qa_auth_interface (MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *inf
if (info->auth_string_length != 14)
err= CR_ERROR;
/* To be set by the plugin */
-// if (strcmp(info->authenticated_as, "qa_test_1_user"))
-// err= CR_ERROR;
+/* if (strcmp(info->authenticated_as, "qa_test_1_user")) */
+/* err= CR_ERROR; */
/* To be set by the plugin */
-// if (strcmp(info->external_user, ""))
-// err= CR_ERROR;
+/* if (strcmp(info->external_user, "")) */
+/* err= CR_ERROR; */
if (info->password_used != PASSWORD_USED_YES)
err= CR_ERROR;
if (strcmp(info->host_or_ip, "localhost"))
@@ -78,8 +78,8 @@ static int qa_auth_interface (MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *inf
/* Assign with an external account, effect on @@local.EXTERNAL_USER */
strcpy(info->external_user, "externaluser");
/* Overwriting will cause a core dump */
-// strcpy(info->host_or_ip, "host_or_ip");
-// info->host_or_ip_length= 10;
+/* strcpy(info->host_or_ip, "host_or_ip"); */
+/* info->host_or_ip_length= 10; */
}
/* Invalid, means too high values for length */
else if (strcmp(info->user_name, "qa_test_3_user")== 0)
@@ -117,8 +117,8 @@ static int qa_auth_interface (MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *inf
/* This assignment has no effect.*/
strcpy(info->external_user, "");
/* Overwriting will cause a core dump */
-// strcpy(info->host_or_ip, "");
-// info->host_or_ip_length= 0;
+/* strcpy(info->host_or_ip, ""); */
+/* info->host_or_ip_length= 0; */
}
/* Set to 'root' */
else if (strcmp(info->user_name, "qa_test_6_user")== 0)