summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <anozdrin/alik@station.>2007-09-29 23:31:08 +0400
committerunknown <anozdrin/alik@station.>2007-09-29 23:31:08 +0400
commit25c7e4be1b321865fced927054452cf27c59fa58 (patch)
treeaef597dc3494eb195548604298bcce33bb53fbb6 /libmysql
parent842fe93b0b5f25c1dd0edd9590279a8e5dd6bc1e (diff)
downloadmariadb-git-25c7e4be1b321865fced927054452cf27c59fa58.tar.gz
Fix compile warnings.
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/client_settings.h4
-rw-r--r--libmysql/libmysql.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/libmysql/client_settings.h b/libmysql/client_settings.h
index a803ff8372f..f87e625771f 100644
--- a/libmysql/client_settings.h
+++ b/libmysql/client_settings.h
@@ -63,3 +63,7 @@ int cli_read_change_user_result(MYSQL *mysql, char *buff, const char *passwd);
int init_embedded_server(int argc, char **argv, char **groups);
void end_embedded_server();
#endif /*EMBEDDED_LIBRARY*/
+
+C_MODE_START
+extern int mysql_init_character_set(MYSQL *mysql);
+C_MODE_END
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index e2e481fdd21..adac6c7cd48 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -2526,7 +2526,7 @@ static my_bool execute(MYSQL_STMT *stmt, char *packet, ulong length)
5 /* execution flags */];
my_bool res;
DBUG_ENTER("execute");
- DBUG_DUMP("packet", packet, length);
+ DBUG_DUMP("packet", (uchar *) packet, length);
mysql->last_used_con= mysql;
int4store(buff, stmt->stmt_id); /* Send stmt id to server */
@@ -4702,14 +4702,14 @@ int cli_read_binary_rows(MYSQL_STMT *stmt)
MYSQL_ROWS *cur, **prev_ptr= &result->data;
NET *net;
+ DBUG_ENTER("cli_read_binary_rows");
+
if (!mysql)
{
set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate);
return 1;
}
- DBUG_ENTER("cli_read_binary_rows");
-
net = &mysql->net;
mysql= mysql->last_used_con;