From d0140a4fe850f336a46991b5480f715d3f413c4a Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 15 Jun 2008 18:41:09 +0000 Subject: [PATCH] * Fix cucul_file_read() calls in cacaview. --- src/common-image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common-image.c b/src/common-image.c index ac0ea5c..0c177ce 100644 --- a/src/common-image.c +++ b/src/common-image.c @@ -274,7 +274,7 @@ void unload_image(struct image * im) static unsigned int u32fread(cucul_file_t * f) { uint8_t buffer[4]; - cucul_file_read(buffer, 4, 1, f); + cucul_file_read(f, buffer, 4); return ((unsigned int)buffer[3] << 24) | ((unsigned int)buffer[2] << 16) | ((unsigned int)buffer[1] << 8) | ((unsigned int)buffer[0]); } @@ -282,14 +282,14 @@ static unsigned int u32fread(cucul_file_t * f) static unsigned int u16fread(cucul_file_t * f) { uint8_t buffer[2]; - cucul_file_read(buffer, 2, 1, f); + cucul_file_read(f, buffer, 2); return ((unsigned int)buffer[1] << 8) | ((unsigned int)buffer[0]); } static unsigned int u8fread(cucul_file_t * f) { uint8_t buffer; - cucul_file_read(&buffer, 1, 1, f); + cucul_file_read(f, &buffer, 1); return (unsigned int)buffer; } #endif