summaryrefslogtreecommitdiff
path: root/mysys/my_lockmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/my_lockmem.c')
-rw-r--r--mysys/my_lockmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/my_lockmem.c b/mysys/my_lockmem.c
index b96331cd3cf..f2c6d52a382 100644
--- a/mysys/my_lockmem.c
+++ b/mysys/my_lockmem.c
@@ -59,7 +59,7 @@ uchar *my_malloc_lock(uint size,myf MyFlags)
/* Add block in a list for munlock */
if (!(element=(struct st_mem_list*) my_malloc(sizeof(*element),MyFlags)))
{
- VOID(munlock((uchar*) ptr,size));
+ (void) munlock((uchar*) ptr,size);
free(ptr);
DBUG_RETURN(0);
}
@@ -85,7 +85,7 @@ void my_free_lock(uchar *ptr,myf Myflags __attribute__((unused)))
element=(struct st_mem_list*) list->data;
if (ptr == element->page)
{ /* Found locked mem */
- VOID(munlock((uchar*) ptr,element->size));
+ (void) munlock((uchar*) ptr,element->size);
mem_list=list_delete(mem_list,list);
break;
}