aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-01-25 08:29:14 +0100
committerFelix Fietkau <nbd@nbd.name>2017-01-25 08:29:16 +0100
commitd974e5a235759087bfce169cf9cce5a4222b33a3 (patch)
tree84278b7a092ac8db0acaf996c249e12cf843d185 /package/boot
parentb02c381b4b817e22a36ce5b2155e9eebcc77e312 (diff)
downloadupstream-d974e5a235759087bfce169cf9cce5a4222b33a3.tar.gz
upstream-d974e5a235759087bfce169cf9cce5a4222b33a3.tar.bz2
upstream-d974e5a235759087bfce169cf9cce5a4222b33a3.zip
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>
Diffstat (limited to 'package/boot')
-rw-r--r--package/boot/uboot-lantiq/patches/0018-tools-lantiq-add-NAND-SPL-support.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/boot/uboot-lantiq/patches/0018-tools-lantiq-add-NAND-SPL-support.patch b/package/boot/uboot-lantiq/patches/0018-tools-lantiq-add-NAND-SPL-support.patch
index 471c902aa5..6d1b8dc69f 100644
--- a/package/boot/uboot-lantiq/patches/0018-tools-lantiq-add-NAND-SPL-support.patch
+++ b/package/boot/uboot-lantiq/patches/0018-tools-lantiq-add-NAND-SPL-support.patch
@@ -21,7 +21,7 @@ Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
struct args {
enum image_types type;
__u32 entry_addr;
-+ loff_t uboot_offset;
++ off_t uboot_offset;
+ unsigned int page_size;
const char *uboot_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 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;
-+ loff_t pos;
++ off_t pos;
+ size_t size;
+ ssize_t n;
+ __u8 *buf;