From 010edb7eecf3fdbdb8645ef3d175d7388f1d08f1 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 10 Oct 2006 14:58:40 +0200 Subject: [PATCH] Fixes to make replication team tree build on Windows. sql/log_event.cc: Adding casts to make it compile on Windows. --- sql/log_event.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/log_event.cc b/sql/log_event.cc index 097caf56da2..5eca92fabe4 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -1083,7 +1083,7 @@ void Log_event::print_header(IO_CACHE* file, ptr[14], ptr[15], ptr[16], ptr[17], ptr[18]); DBUG_ASSERT(bytes_written >= 0); DBUG_ASSERT(static_cast(bytes_written) < sizeof(emit_buf)); - my_b_write(file, emit_buf, bytes_written); + my_b_write(file, (byte*) emit_buf, bytes_written); ptr += LOG_EVENT_MINIMAL_HEADER_LEN; hexdump_from += LOG_EVENT_MINIMAL_HEADER_LEN; } @@ -1114,7 +1114,7 @@ void Log_event::print_header(IO_CACHE* file, hex_string, char_string); DBUG_ASSERT(bytes_written >= 0); DBUG_ASSERT(static_cast(bytes_written) < sizeof(emit_buf)); - my_b_write(file, emit_buf, bytes_written); + my_b_write(file, (byte*) emit_buf, bytes_written); hex_string[0]= 0; char_string[0]= 0; c= char_string; @@ -1135,7 +1135,7 @@ void Log_event::print_header(IO_CACHE* file, hex_string, char_string); DBUG_ASSERT(bytes_written >= 0); DBUG_ASSERT(static_cast(bytes_written) < sizeof(emit_buf)); - my_b_write(file, emit_buf, bytes_written); + my_b_write(file, (byte*) emit_buf, bytes_written); } } DBUG_VOID_RETURN;