diff options
author | Michael Walle <michael@walle.cc> | 2020-05-22 14:07:37 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-25 11:54:53 -0400 |
commit | 2843444a6eaf1bf287aa00ad46ccfac54fac26b0 (patch) | |
tree | 98bbfc04da6954c0e4ab03acce84ec99173b3939 /cmd/zip.c | |
parent | eff5a54758080f842783c4e5334e0675ea3cd317 (diff) |
cmd: zip: fix implicit declaration warning
Fix the following warning:
cmd/zip.c: In function ‘do_zip’:
cmd/zip.c:30:6: warning: implicit declaration of function ‘gzip’; did you mean ‘do_zip’? [-Wimplicit-function-declaration]
if (gzip((void *) dst, &dst_len, (void *) src, src_len) != 0)
^~~~
do_zip
Include gzip.h header which declares the gzip() function.
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/zip.c')
-rw-r--r-- | cmd/zip.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -7,6 +7,7 @@ #include <common.h> #include <command.h> #include <env.h> +#include <gzip.h> static int do_zip(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { |