summaryrefslogtreecommitdiff
path: root/storage/myisammrg
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2009-11-25 16:46:45 +0300
committerAlexander Nozdrin <alik@sun.com>2009-11-25 16:46:45 +0300
commit3c11750e363da6e1017d5bc86e9e7e03b2c4e101 (patch)
tree3e8e0dbed8da743714f85fb19c404dce34319d8b /storage/myisammrg
parente2a34cbf706926e10016079a094a2877eb2f4f18 (diff)
parentbe0add42f53b23d8a5e279cb3041a3fc93e375a0 (diff)
downloadmariadb-git-3c11750e363da6e1017d5bc86e9e7e03b2c4e101.tar.gz
Auto-merge from mysql-next-mr.
Diffstat (limited to 'storage/myisammrg')
-rw-r--r--storage/myisammrg/myrg_close.c2
-rw-r--r--storage/myisammrg/myrg_create.c2
-rw-r--r--storage/myisammrg/myrg_open.c24
3 files changed, 14 insertions, 14 deletions
diff --git a/storage/myisammrg/myrg_close.c b/storage/myisammrg/myrg_close.c
index 97216ed47fe..6f641019a73 100644
--- a/storage/myisammrg/myrg_close.c
+++ b/storage/myisammrg/myrg_close.c
@@ -58,7 +58,7 @@ int myrg_close(MYRG_INFO *info)
pthread_mutex_lock(&THR_LOCK_open);
myrg_open_list=list_delete(myrg_open_list,&info->open_list);
pthread_mutex_unlock(&THR_LOCK_open);
- VOID(pthread_mutex_destroy(&info->mutex));
+ pthread_mutex_destroy(&info->mutex);
my_free((uchar*) info,MYF(0));
if (error)
{
diff --git a/storage/myisammrg/myrg_create.c b/storage/myisammrg/myrg_create.c
index eaed470daec..b030340e743 100644
--- a/storage/myisammrg/myrg_create.c
+++ b/storage/myisammrg/myrg_create.c
@@ -66,7 +66,7 @@ err:
save_errno=my_errno ? my_errno : -1;
switch (errpos) {
case 1:
- VOID(my_close(file,MYF(0)));
+ (void) my_close(file,MYF(0));
}
DBUG_RETURN(my_errno=save_errno);
} /* myrg_create */
diff --git a/storage/myisammrg/myrg_open.c b/storage/myisammrg/myrg_open.c
index 7b310dc2eed..d6d1a68ca20 100644
--- a/storage/myisammrg/myrg_open.c
+++ b/storage/myisammrg/myrg_open.c
@@ -87,9 +87,9 @@ MYRG_INFO *myrg_open(const char *name, int mode, int handle_locking)
if (!has_path(buff))
{
- VOID(strmake(name_buff+dir_length,buff,
- sizeof(name_buff)-1-dir_length));
- VOID(cleanup_dirname(buff,name_buff));
+ (void) strmake(name_buff+dir_length,buff,
+ sizeof(name_buff)-1-dir_length);
+ (void) cleanup_dirname(buff,name_buff);
}
else
fn_format(buff, buff, "", "", 0);
@@ -167,9 +167,9 @@ MYRG_INFO *myrg_open(const char *name, int mode, int handle_locking)
m_info->last_used_table=m_info->open_tables;
m_info->children_attached= TRUE;
- VOID(my_close(fd,MYF(0)));
+ (void) my_close(fd,MYF(0));
end_io_cache(&file);
- VOID(pthread_mutex_init(&m_info->mutex, MY_MUTEX_INIT_FAST));
+ pthread_mutex_init(&m_info->mutex, MY_MUTEX_INIT_FAST);
m_info->open_list.data=(void*) m_info;
pthread_mutex_lock(&THR_LOCK_open);
myrg_open_list=list_add(myrg_open_list,&m_info->open_list);
@@ -190,7 +190,7 @@ err:
end_io_cache(&file);
/* Fall through */
case 1:
- VOID(my_close(fd,MYF(0)));
+ (void) my_close(fd,MYF(0));
}
my_errno=save_errno;
DBUG_RETURN (NULL);
@@ -313,9 +313,9 @@ MYRG_INFO *myrg_parent_open(const char *parent_name,
if (!has_path(child_name_buff))
{
- VOID(strmake(parent_name_buff + dir_length, child_name_buff,
- sizeof(parent_name_buff) - 1 - dir_length));
- VOID(cleanup_dirname(child_name_buff, parent_name_buff));
+ (void) strmake(parent_name_buff + dir_length, child_name_buff,
+ sizeof(parent_name_buff) - 1 - dir_length);
+ (void) cleanup_dirname(child_name_buff, parent_name_buff);
}
else
fn_format(child_name_buff, child_name_buff, "", "", 0);
@@ -327,8 +327,8 @@ MYRG_INFO *myrg_parent_open(const char *parent_name,
}
end_io_cache(&file_cache);
- VOID(my_close(fd, MYF(0)));
- VOID(pthread_mutex_init(&m_info->mutex, MY_MUTEX_INIT_FAST));
+ (void) my_close(fd, MYF(0));
+ pthread_mutex_init(&m_info->mutex, MY_MUTEX_INIT_FAST);
m_info->open_list.data= (void*) m_info;
pthread_mutex_lock(&THR_LOCK_open);
@@ -348,7 +348,7 @@ MYRG_INFO *myrg_parent_open(const char *parent_name,
end_io_cache(&file_cache);
/* Fall through */
case 1:
- VOID(my_close(fd, MYF(0)));
+ (void) my_close(fd, MYF(0));
}
my_errno= save_errno;
DBUG_RETURN (NULL);