mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-20 03:29:57 +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_open(device_io_t *device, char *path)
|
||||||
{
|
{
|
||||||
block_FILE *block;
|
block_FILE *block;
|
||||||
int blocksize = device->get_blocksize(device);
|
int blocksize = device->get_blocksize(device->data);
|
||||||
int first, size;
|
int first, size;
|
||||||
|
|
||||||
first = strtol(path, &path, 0);
|
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 read = 0;
|
||||||
int ret;
|
int ret;
|
||||||
int blocksize = file->device->get_blocksize(&file->device);
|
int blocksize = file->device->get_blocksize(file->device->data);
|
||||||
|
|
||||||
while (size != 0)
|
while (size != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user