Fix for 64-bit platforms.
[cascardo/bootimg.git] / bootimg.c
index cacd658..7e38e0a 100644 (file)
--- a/bootimg.c
+++ b/bootimg.c
@@ -25,7 +25,7 @@
 #include <errno.h>
 #include <sys/stat.h>
 
-static int dump_or_load(int fd, size_t *len, int pgsz, char *fname, int dump)
+static int dump_or_load(int fd, uint32_t *len, int pgsz, char *fname, int dump)
 {
        int cfd;
        char *page;
@@ -92,12 +92,12 @@ out:
        return -EINVAL;
 }
 
-static int dump(int fd, size_t len, int pgsz, char *fname)
+static int dump(int fd, uint32_t len, int pgsz, char *fname)
 {
        return dump_or_load(fd, &len, pgsz, fname, 1);
 }
 
-static int load(int fd, size_t *len, int pgsz, char *fname)
+static int load(int fd, uint32_t *len, int pgsz, char *fname)
 {
        return dump_or_load(fd, len, pgsz, fname, 0);
 }