Skip to contentSkip to conversation

compr_zlib: mark local functions as static

PATCH Applied Mike Frysinger 2 participants 2 messages Sep 23, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compr_zlib: mark local functions as static

---
 compr_zlib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
compr_zlib.c +2 -2
index db4811d..03464f9 100644
@@ -52,7 +52,7 @@ Q: Is 12 bytes sufficient?
  */
 #define STREAM_END_SPACE 12
 
-int jffs2_zlib_compress(unsigned char *data_in, unsigned char *cpage_out,
+static int jffs2_zlib_compress(unsigned char *data_in, unsigned char *cpage_out,
 		uint32_t *sourcelen, uint32_t *dstlen, void *model)
 {
 	z_stream strm;
@@ -100,7 +100,7 @@ int jffs2_zlib_compress(unsigned char *data_in, unsigned char *cpage_out,
 	return 0;
 }
 
-int jffs2_zlib_decompress(unsigned char *data_in, unsigned char *cpage_out,
+static int jffs2_zlib_decompress(unsigned char *data_in, unsigned char *cpage_out,
 		uint32_t srclen, uint32_t destlen, void *model)
 {
 	z_stream strm;
Signature · 1 line
1.7.3
#1 lore raw
Quoted 4 lines · Mike Frysinger
---
 compr_zlib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Pushed to mtd-utils, thanks!

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)