]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - tools/mkimage.c
engicam: Add fdt_addr env value based on cpu_type
[people/ms/u-boot.git] / tools / mkimage.c
index b0c98f6f5512be510e463538a24d35d36dfdcd91..d982bc5665f1749c393e689d58122f3c513108ce 100644 (file)
@@ -526,7 +526,7 @@ int main(int argc, char **argv)
                                                        + 0x20, 0 };
                        int i = params.file_size;
                        for (; i < aligned_filesize; i++) {
-                               if (write(ifd, &i, 1) != 1) {
+                               if (write(ifd, (char *) &i, 1) != 1) {
                                        fprintf(stderr,
                                                        "%s: Write error on %s: %s\n",
                                                        params.cmdname,