summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2011-12-25 09:57:26 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-02 12:33:52 +0100
commit0c5310075b5e1995bba0ddeed5a674a075fdb8b0 (patch)
tree97e7a3d2656c4f047b1fe43ee16ffbc5581e8b7a
parent4b8750c95610f601ac7e8571713eab268877d224 (diff)
downloadbarebox-0c5310075b5e1995bba0ddeed5a674a075fdb8b0.tar.gz
barebox-0c5310075b5e1995bba0ddeed5a674a075fdb8b0.tar.xz
decompress_inflate.c: fix "no previous prototype for 'gunzip'" warning
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/gunzip.h4
-rw-r--r--lib/decompress_inflate.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/gunzip.h b/include/gunzip.h
index 8c0aef1ba5..b9018941d1 100644
--- a/include/gunzip.h
+++ b/include/gunzip.h
@@ -1,5 +1,5 @@
-#ifndef INFLATE_H
-#define INFLATE_H
+#ifndef GUNZIP_H
+#define GUNZIP_H
int gunzip(unsigned char *inbuf, int len,
int(*fill)(void*, unsigned int),
diff --git a/lib/decompress_inflate.c b/lib/decompress_inflate.c
index d246d4dc7e..526d6a173f 100644
--- a/lib/decompress_inflate.c
+++ b/lib/decompress_inflate.c
@@ -24,6 +24,8 @@
#endif /* STATIC */
+#include <gunzip.h>
+
#define GZIP_IOBUF_SIZE (16*1024)
static int nofill(void *buffer, unsigned int len)