summaryrefslogtreecommitdiff
path: root/sql/slave.cc
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-11-18 02:15:06 +0200
committermonty@donna.mysql.com <>2000-11-18 02:15:06 +0200
commite5dcd8bed327259fa09cfe7e82fc4dbe7642b8bd (patch)
treee47c14103d1588f6a27c229783e07d73438c96d0 /sql/slave.cc
parent19a9f8f943ad93d0d607ff358cd7314a6ee262d2 (diff)
downloadmariadb-git-e5dcd8bed327259fa09cfe7e82fc4dbe7642b8bd.tar.gz
Portability fixes
Diffstat (limited to 'sql/slave.cc')
-rw-r--r--sql/slave.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/slave.cc b/sql/slave.cc
index 785d4394845..aae2e6e40cb 100644
--- a/sql/slave.cc
+++ b/sql/slave.cc
@@ -42,7 +42,7 @@ static int create_table_from_dump(THD* thd, NET* net, const char* db,
static inline char* rewrite_db(char* db);
static void free_table_ent(TABLE_RULE_ENT* e)
{
- my_free((byte*)e, MYF(0));
+ my_free((gptr) e, MYF(0));
}
static byte* get_table_key(TABLE_RULE_ENT* e, uint* len,
@@ -74,12 +74,12 @@ int tables_ok(THD* thd, TABLE_LIST* tables)
uint len = strmov(p, tables->real_name) - hash_key ;
if(do_table_inited) // if there are any do's
{
- if(hash_search(&replicate_do_table, hash_key, len))
+ if(hash_search(&replicate_do_table, (byte*) hash_key, len))
return 1;
}
if(ignore_table_inited) // if there are any do's
{
- if(hash_search(&replicate_ignore_table, hash_key, len))
+ if(hash_search(&replicate_ignore_table, (byte*) hash_key, len))
return 0;
}
}