X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Funzip.c;h=afd58e7cdb12757c3cf333919e2087d711213ecd;hb=0688b758a2c2d3c56dd46ceb6c78ebf29867cc57;hp=a8bcb1f529d2e60df610d44d9c3a6dbc498ce3f0;hpb=88033d737d9f46e7eebda6a8f9770957eb9aae9c;p=oweals%2Fu-boot.git diff --git a/cmd/unzip.c b/cmd/unzip.c index a8bcb1f529..afd58e7cdb 100644 --- a/cmd/unzip.c +++ b/cmd/unzip.c @@ -1,12 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include +#include +#include static int do_unzip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { @@ -28,8 +29,8 @@ static int do_unzip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) if (gunzip((void *) dst, dst_len, (void *) src, &src_len) != 0) return 1; - printf("Uncompressed size: %ld = 0x%lX\n", src_len, src_len); - setenv_hex("filesize", src_len); + printf("Uncompressed size: %lu = 0x%lX\n", src_len, src_len); + env_set_hex("filesize", src_len); return 0; }