summaryrefslogtreecommitdiffstats
path: root/src/image.h
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.h
parent6d69da6cd120fac092c92717bf37e7dcc3972b6b (diff)
download0xFFFF-b0130e52d6e6e3a893b690524254652f65a9621e.tar.bz2
Fix compilation on 32bit system
Diffstat (limited to 'src/image.h')
-rw-r--r--src/image.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/image.h b/src/image.h
index 648a090..709fef7 100644
--- a/src/image.h
+++ b/src/image.h
@@ -51,9 +51,9 @@ struct image {
int fd;
int is_shared_fd;
uint32_t align;
- off_t offset;
- off_t cur;
- off_t acur;
+ size_t offset;
+ size_t cur;
+ size_t acur;
char * orig_filename;
};
@@ -66,7 +66,7 @@ struct image_list {
struct image * image_alloc_from_file(const char * file, const char * type, const char * device, const char * hwrevs, const char * version, const char * layout);
struct image * image_alloc_from_shared_fd(int fd, size_t size, size_t offset, uint16_t hash, const char * type, const char * device, const char * hwrevs, const char * version, const char * layout);
void image_free(struct image * image);
-void image_seek(struct image * image, off_t whence);
+void image_seek(struct image * image, size_t whence);
size_t image_read(struct image * image, void * buf, size_t count);
void image_print_info(struct image * image);
void image_list_add(struct image_list ** list, struct image * image);