summaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-09-22 23:16:56 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-09-22 23:16:56 +0200
commitb0130e52d6e6e3a893b690524254652f65a9621e (patch)
treef2de8f1a6f88e7486e5a46eb91c1d1e66601b1f6 /src/image.c
parent6d69da6cd120fac092c92717bf37e7dcc3972b6b (diff)
download0xFFFF-b0130e52d6e6e3a893b690524254652f65a9621e.tar.bz2
Fix compilation on 32bit system
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c
index cfccb49..f8e9c93 100644
--- a/src/image.c
+++ b/src/image.c
@@ -320,7 +320,7 @@ void image_free(struct image * image) {
}
-void image_seek(struct image * image, off_t whence) {
+void image_seek(struct image * image, size_t whence) {
if ( whence > image->size )
return;
@@ -339,7 +339,7 @@ void image_seek(struct image * image, off_t whence) {
size_t image_read(struct image * image, void * buf, size_t count) {
- off_t cur;
+ size_t cur;
ssize_t ret;
size_t new_count = 0;
size_t ret_count = 0;