From 642feb9d59ed88d9b80790bac3db7fa159277546 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Thu, 1 Nov 2007 22:43:06 +0000 Subject: [PATCH] Correct parameters of get_blocksize() --- libblock/block_open.c | 2 +- libblock/block_read.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libblock/block_open.c b/libblock/block_open.c index fa210e0..2530410 100644 --- a/libblock/block_open.c +++ b/libblock/block_open.c @@ -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); diff --git a/libblock/block_read.c b/libblock/block_read.c index 95b0b97..426e5e9 100644 --- a/libblock/block_read.c +++ b/libblock/block_read.c @@ -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) {