From 42f56557f59705aeec83a54f02399b04d52e9eea Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 9 Sep 2013 19:31:29 +0200 Subject: 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 --- client/mysql_plugin.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'client') diff --git a/client/mysql_plugin.c b/client/mysql_plugin.c index b6fa350b54a..c3fa1a49e81 100644 --- a/client/mysql_plugin.c +++ b/client/mysql_plugin.c @@ -101,7 +101,7 @@ int main(int argc,char *argv[]) MY_INIT(argv[0]); sf_leaking_memory=1; /* don't report memory leaks on early exits */ - plugin_data.name= 0; // initialize name + plugin_data.name= 0; /* initialize name */ /* The following operations comprise the method for enabling or disabling @@ -655,11 +655,11 @@ static int load_plugin_data(char *plugin_name, char *config_file) } break; } - if ((line[0] == '#') || (line[0] == '\n')) // skip comment and blank lines + if ((line[0] == '#') || (line[0] == '\n')) /* skip comment and blank lines */ { continue; } - if (i == -1) // if first pass, read this line as so_name + if (i == -1) /* if first pass, read this line as so_name */ { /* Add proper file extension for soname */ strcat(line, FN_SOEXT); @@ -707,10 +707,10 @@ error: static int check_options(int argc, char **argv, char *operation) { - int i= 0; // loop counter - int num_found= 0; // number of options found (shortcut loop) - char config_file[FN_REFLEN]; // configuration file name - char plugin_name[FN_REFLEN]; // plugin name + int i= 0; /* loop counter */ + int num_found= 0; /* number of options found (shortcut loop) */ + char config_file[FN_REFLEN]; /* configuration file name */ + char plugin_name[FN_REFLEN]; /* plugin name */ /* Form prefix strings for the options. */ const char *basedir_prefix = "--basedir="; -- cgit v1.2.1