Correct parameters of get_blocksize()

This commit is contained in:
Laurent Vivier 2007-11-01 22:43:06 +00:00
parent d3e4392b75
commit 642feb9d59
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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)
{