Patchwork compr_zlib: mark local functions as static

login
register
mail settings
Submitter Mike Frysinger
Date Sept. 23, 2010, 2:34 a.m.
Message ID <1285209264-3936-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/65485/
State Accepted, archived
Commit 1255c7cfa356a24204f9333cd5359e3ece655ed6
Headers show

Comments

Mike Frysinger - Sept. 23, 2010, 2:34 a.m.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 compr_zlib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Artem Bityutskiy - Sept. 23, 2010, 1:36 p.m.
On Wed, 2010-09-22 at 22:34 -0400, Mike Frysinger wrote:
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  compr_zlib.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Pushed to mtd-utils, thanks!

Patch

diff --git a/compr_zlib.c b/compr_zlib.c
index db4811d..03464f9 100644
--- a/compr_zlib.c
+++ b/compr_zlib.c
@@ -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;