X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Fzip.c;h=8ef46e9815f7fd173eecb90d5177bd2f30dc9201;hb=c366a45649a33fc75857afb72f2e7358a906d3d7;hp=7fcd9d5bf8731f1aa9ddd10185994b1ca09e2768;hpb=2218c54bc13c8045903afc05d1364439a230da1f;p=oweals%2Fu-boot.git diff --git a/cmd/zip.c b/cmd/zip.c index 7fcd9d5bf8..8ef46e9815 100644 --- a/cmd/zip.c +++ b/cmd/zip.c @@ -1,12 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2012 * Lei Wen , Marvell Inc. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include +#include static int do_zip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { @@ -29,8 +29,8 @@ static int do_zip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) if (gzip((void *) dst, &dst_len, (void *) src, src_len) != 0) return 1; - printf("Compressed size: %ld = 0x%lX\n", dst_len, dst_len); - setenv_hex("filesize", dst_len); + printf("Compressed size: %lu = 0x%lX\n", dst_len, dst_len); + env_set_hex("filesize", dst_len); return 0; }