1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

cleanup: my_off_t mmaped_length -> size_t

all mmap-related functions take size_t lengh.
mmaped_length was casted to size_t *every single time*
This commit is contained in:
Sergei Golubchik
2018-02-06 00:30:00 +01:00
parent d429f60770
commit 00855a62ab
5 changed files with 7 additions and 9 deletions

View File

@@ -4791,8 +4791,7 @@ static int replace_data_file(HA_CHECK *param, MI_INFO *info, File new_file)
*/
if (info->s->file_map)
{
(void) my_munmap((char*) info->s->file_map,
(size_t) info->s->mmaped_length);
(void) my_munmap((char*) info->s->file_map, info->s->mmaped_length);
info->s->file_map= NULL;
}