summaryrefslogtreecommitdiff
path: root/storage/federated
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2009-11-24 16:54:59 +0300
committerKonstantin Osipov <kostja@sun.com>2009-11-24 16:54:59 +0300
commit4cff617c2541279a53b92acbd4e4d8716dc54873 (patch)
tree887f74eb880e4d9ff8b76ff93b221f7e6ec7fbe8 /storage/federated
parent26cd9abe4fcc058004ad8e656ff5b6713c0118f4 (diff)
downloadmariadb-git-4cff617c2541279a53b92acbd4e4d8716dc54873.tar.gz
Backport of:
---------------------------------------------------------------------- ChangeSet@1.2571, 2008-04-08 12:30:06+02:00, vvaintroub@wva. +122 -0 Bug#32082 : definition of VOID in my_global.h conflicts with Windows SDK headers VOID macro is now removed. Its usage is replaced with void cast. In some cases, where cast does not make much sense (pthread_*, printf, hash_delete, my_seek), cast is ommited.
Diffstat (limited to 'storage/federated')
-rw-r--r--storage/federated/ha_federated.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/federated/ha_federated.cc b/storage/federated/ha_federated.cc
index 05be8b27a8b..c582adc43e6 100644
--- a/storage/federated/ha_federated.cc
+++ b/storage/federated/ha_federated.cc
@@ -465,7 +465,7 @@ int federated_db_init(void *p)
DBUG_RETURN(FALSE);
}
- VOID(pthread_mutex_destroy(&federated_mutex));
+ pthread_mutex_destroy(&federated_mutex);
error:
DBUG_RETURN(TRUE);
}
@@ -484,7 +484,7 @@ error:
int federated_done(void *p)
{
my_hash_free(&federated_open_tables);
- VOID(pthread_mutex_destroy(&federated_mutex));
+ pthread_mutex_destroy(&federated_mutex);
return 0;
}
@@ -1562,7 +1562,7 @@ static int free_share(FEDERATED_SHARE *share)
{
my_hash_delete(&federated_open_tables, (uchar*) share);
thr_lock_delete(&share->lock);
- VOID(pthread_mutex_destroy(&share->mutex));
+ pthread_mutex_destroy(&share->mutex);
free_root(&mem_root, MYF(0));
}
pthread_mutex_unlock(&federated_mutex);