mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-02 03:04:25 +00:00
Correct parameters of get_blocksize()
This commit is contained in:
parent
d3e4392b75
commit
642feb9d59
@ -19,7 +19,7 @@
|
||||
block_FILE *block_open(device_io_t *device, char *path)
|
||||
{
|
||||
block_FILE *block;
|
||||
int blocksize = device->get_blocksize(device);
|
||||
int blocksize = device->get_blocksize(device->data);
|
||||
int first, size;
|
||||
|
||||
first = strtol(path, &path, 0);
|
||||
|
@ -13,7 +13,7 @@ size_t block_read(block_FILE *file, void *ptr, size_t size)
|
||||
{
|
||||
int read = 0;
|
||||
int ret;
|
||||
int blocksize = file->device->get_blocksize(&file->device);
|
||||
int blocksize = file->device->get_blocksize(file->device->data);
|
||||
|
||||
while (size != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user