mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Portability fixes
This commit is contained in:
@ -330,12 +330,12 @@ static void dump_local_log_entries(const char* logname)
|
||||
if (position)
|
||||
{
|
||||
/* skip 'position' characters from stdout */
|
||||
char buff[IO_SIZE];
|
||||
byte buff[IO_SIZE];
|
||||
my_off_t length,tmp;
|
||||
for (length=position ; length > 0 ; length-=tmp)
|
||||
{
|
||||
tmp=min(length,sizeof(buff));
|
||||
if (my_b_read(file,buff,tmp))
|
||||
if (my_b_read(file,buff, (uint) tmp))
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user