summaryrefslogtreecommitdiff
path: root/storage/archive/ha_archive.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/archive/ha_archive.cc')
-rw-r--r--storage/archive/ha_archive.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/storage/archive/ha_archive.cc b/storage/archive/ha_archive.cc
index 1cb9b8bba80..a341843662f 100644
--- a/storage/archive/ha_archive.cc
+++ b/storage/archive/ha_archive.cc
@@ -175,7 +175,7 @@ int archive_db_init(void *p)
if (my_hash_init(&archive_open_tables, table_alias_charset, 32, 0, 0,
(my_hash_get_key) archive_get_key, 0, 0))
{
- VOID(pthread_mutex_destroy(&archive_mutex));
+ pthread_mutex_destroy(&archive_mutex);
}
else
{
@@ -199,7 +199,7 @@ error:
int archive_db_done(void *p)
{
my_hash_free(&archive_open_tables);
- VOID(pthread_mutex_destroy(&archive_mutex));
+ pthread_mutex_destroy(&archive_mutex);
return 0;
}
@@ -346,7 +346,7 @@ ARCHIVE_SHARE *ha_archive::get_share(const char *table_name, int *rc)
/*
We will use this lock for rows.
*/
- VOID(pthread_mutex_init(&share->mutex,MY_MUTEX_INIT_FAST));
+ pthread_mutex_init(&share->mutex,MY_MUTEX_INIT_FAST);
/*
We read the meta file, but do not mark it dirty. Since we are not
@@ -363,7 +363,7 @@ ARCHIVE_SHARE *ha_archive::get_share(const char *table_name, int *rc)
share->crashed= archive_tmp.dirty;
azclose(&archive_tmp);
- VOID(my_hash_insert(&archive_open_tables, (uchar*) share));
+ (void) my_hash_insert(&archive_open_tables, (uchar*) share);
thr_lock_init(&share->lock);
}
share->use_count++;
@@ -396,7 +396,7 @@ int ha_archive::free_share()
{
my_hash_delete(&archive_open_tables, (uchar*) share);
thr_lock_delete(&share->lock);
- VOID(pthread_mutex_destroy(&share->mutex));
+ pthread_mutex_destroy(&share->mutex);
/*
We need to make sure we don't reset the crashed state.
If we open a crashed file, wee need to close it as crashed unless
@@ -1493,7 +1493,7 @@ int ha_archive::info(uint flag)
{
MY_STAT file_stat; // Stat information for the data file
- VOID(my_stat(share->data_file_name, &file_stat, MYF(MY_WME)));
+ (void) my_stat(share->data_file_name, &file_stat, MYF(MY_WME));
stats.data_file_length= file_stat.st_size;
stats.create_time= (ulong) file_stat.st_ctime;