summaryrefslogtreecommitdiff
path: root/libmysql/libmysql.c
diff options
context:
space:
mode:
authorJim Winstead <jimw@mysql.com>2009-11-23 13:54:27 -0800
committerJim Winstead <jimw@mysql.com>2009-11-23 13:54:27 -0800
commit43e77cd32f77b546264b634c4c4f9b784fa94562 (patch)
tree53575230fb0e1796702ddddb8779080bc6236b92 /libmysql/libmysql.c
parentb75392782c06035b23009fe6a712d7e990bd60d5 (diff)
downloadmariadb-git-43e77cd32f77b546264b634c4c4f9b784fa94562.tar.gz
Fix C99 aliasing violation due to mismatched types that were papered over
with a cast. (Bug #48284)
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r--libmysql/libmysql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 77ff2a01d7c..98955c8fc89 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -2285,7 +2285,7 @@ mysql_stmt_param_metadata(MYSQL_STMT *stmt)
/* Store type of parameter in network buffer. */
-static void store_param_type(char **pos, MYSQL_BIND *param)
+static void store_param_type(unsigned char **pos, MYSQL_BIND *param)
{
uint typecode= param->buffer_type | (param->is_unsigned ? 32768 : 0);
int2store(*pos, typecode);
@@ -2565,7 +2565,7 @@ int cli_stmt_execute(MYSQL_STMT *stmt)
that is sent to the server.
*/
for (param= stmt->params; param < param_end ; param++)
- store_param_type((char**) &net->write_pos, param);
+ store_param_type(&net->write_pos, param);
}
for (param= stmt->params; param < param_end; param++)