mirror of
https://github.com/vivier/EMILE.git
synced 2025-08-15 07:27:41 +00:00
Correct parameters of get_blocksize()
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user