uboot-lantiq: fix a tool portability issue
authorFelix Fietkau <nbd@nbd.name>
Wed, 25 Jan 2017 07:29:14 +0000 (08:29 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 25 Jan 2017 07:29:16 +0000 (08:29 +0100)
Use the standard off_t type instead of loff_t

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/boot/uboot-lantiq/patches/0018-tools-lantiq-add-NAND-SPL-support.patch

index 471c902aa5295a01b8a07fb3f264dccd5735eb3e..6d1b8dc69f06c9fa2025bb85760d5494be4fc00c 100644 (file)
@@ -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;