1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-18 21:23:55 +02:00

uboot-lantiq: fix a tool portability issue

Use the standard off_t type instead of loff_t

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2017-01-25 08:29:14 +01:00
parent b02c381b4b
commit d974e5a235

View File

@ -21,7 +21,7 @@ Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
struct args { struct args {
enum image_types type; enum image_types type;
__u32 entry_addr; __u32 entry_addr;
+ loff_t uboot_offset; + off_t uboot_offset;
+ unsigned int page_size; + unsigned int page_size;
const char *uboot_bin; const char *uboot_bin;
const char *spl_bin; const char *spl_bin;
@ -121,10 +121,10 @@ Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
} }
-static int create_sfspl(const struct args *arg) -static int create_sfspl(const struct args *arg)
+static int pad_to_offset(int fd, loff_t offset) +static int pad_to_offset(int fd, off_t offset)
{ {
- int out_fd, uboot_fd, spl_fd, ret; - int out_fd, uboot_fd, spl_fd, ret;
+ loff_t pos; + off_t pos;
+ size_t size; + size_t size;
+ ssize_t n; + ssize_t n;
+ __u8 *buf; + __u8 *buf;