]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - fs/ubifs/ubifs.c
env: Rename common functions related to setenv()
[people/ms/u-boot.git] / fs / ubifs / ubifs.c
index cc397d605b0e03b1901f96cbb88cb62411002004..8f1c9d167d741fe0a1b65475de10713785d29e1d 100644 (file)
@@ -939,9 +939,9 @@ int ubifs_load(char *filename, u32 addr, u32 size)
 
        printf("Loading file '%s' to addr 0x%08x...\n", filename, addr);
 
-       err = ubifs_read(filename, (void *)addr, 0, size, &actread);
+       err = ubifs_read(filename, (void *)(uintptr_t)addr, 0, size, &actread);
        if (err == 0) {
-               setenv_hex("filesize", actread);
+               env_set_hex("filesize", actread);
                printf("Done\n");
        }