summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <Magnus@hugo.>2006-04-22 13:29:05 +0200
committerunknown <Magnus@hugo.>2006-04-22 13:29:05 +0200
commitc6a0bfbae3dd72f16a47ede1f706aabab1eb8c10 (patch)
tree4f457cf88e730f266fb6c6ccd4b285e9bb9dcb87
parenta0aea60d0e3ea05b8e4d9f58e6ad1d98203eb175 (diff)
downloadmariadb-git-c6a0bfbae3dd72f16a47ede1f706aabab1eb8c10.tar.gz
Fix windows compile problem
-rw-r--r--sql/sql_table.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index b0e5a0b111a..ca13fb27f96 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -328,7 +328,7 @@ static bool read_ddl_log_file_entry(uint entry_no)
uint io_size= global_ddl_log.io_size;
DBUG_ENTER("read_ddl_log_file_entry");
- if (my_pread(file_id, file_entry_buf, io_size, io_size * entry_no,
+ if (my_pread(file_id, (byte*)file_entry_buf, io_size, io_size * entry_no,
MYF(MY_WME)) != io_size)
error= TRUE;
DBUG_RETURN(error);
@@ -352,7 +352,7 @@ static bool write_ddl_log_file_entry(uint entry_no)
char *file_entry_buf= (char*)global_ddl_log.file_entry_buf;
DBUG_ENTER("write_ddl_log_file_entry");
- if (my_pwrite(file_id, file_entry_buf,
+ if (my_pwrite(file_id, (byte*)file_entry_buf,
IO_SIZE, IO_SIZE * entry_no, MYF(MY_WME)) != IO_SIZE)
error= TRUE;
DBUG_RETURN(error);