summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorMichael Widenius <monty@mariadb.org>2014-03-11 16:53:24 +0200
committerMichael Widenius <monty@mariadb.org>2014-03-11 16:53:24 +0200
commit800a278fd09c353a02f02c9c32074d3807861967 (patch)
treece83df84936053a694474dc1632e7869073a503a /extra
parent599eb0dc8632da402af65f600777cfaf3c3d513e (diff)
downloadmariadb-git-800a278fd09c353a02f02c9c32074d3807861967.tar.gz
Fixed a compiler failure and removed some warnings in windows
extra/replace.c: Removed compiler warning sql/unireg.cc: Removed compiler warning storage/maria/ma_blockrec.c: Removed compiler warning storage/maria/ma_dynrec.c: Fixed compiler failure storage/maria/ma_unique.c: Removed compiler warning storage/myisam/mi_check.c: Removed compiler warning storage/myisam/mi_checksum.c: Removed compiler warning
Diffstat (limited to 'extra')
-rw-r--r--extra/replace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/replace.c b/extra/replace.c
index 8aef9f9a0a0..c4105e45973 100644
--- a/extra/replace.c
+++ b/extra/replace.c
@@ -265,7 +265,7 @@ static int insert_pointer_name(reg1 POINTER_ARRAY *pa,char * name)
if (!(pa->str= (uchar*) my_malloc((uint) (PS_MALLOC-MALLOC_OVERHEAD),
MYF(MY_WME))))
{
- my_free(pa->typelib.type_names);
+ my_free((void*) pa->typelib.type_names);
DBUG_RETURN (-1);
}
pa->max_count=(PC_MALLOC-MALLOC_OVERHEAD)/(sizeof(uchar*)+
@@ -327,7 +327,7 @@ static void free_pointer_array(reg1 POINTER_ARRAY *pa)
if (pa->typelib.count)
{
pa->typelib.count=0;
- my_free(pa->typelib.type_names);
+ my_free((void*) pa->typelib.type_names);
pa->typelib.type_names=0;
my_free(pa->str);
}