[PATCH 1/5] zlibsupport: Add static qualifiers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Alexey Gladkov <gladkov.alexey@xxxxxxxxx>
---
 zlibsupport.c |    4 ++--
 zlibsupport.h |    1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/zlibsupport.c b/zlibsupport.c
index 597820e..fc58f16 100644
--- a/zlibsupport.c
+++ b/zlibsupport.c
@@ -20,7 +20,7 @@
 #ifdef CONFIG_USE_ZLIB
 #include <zlib.h>
 
-void *grab_contents(gzFile *gzfd, unsigned long *size)
+static void *grab_contents(gzFile *gzfd, unsigned long *size)
 {
 	unsigned int max = 16384;
 	void *buffer = NOFAIL(malloc(max));
@@ -64,7 +64,7 @@ void release_file(void *data, unsigned long size)
 }
 #else /* ... !CONFIG_USE_ZLIB */
 
-void *grab_fd(int fd, unsigned long *size)
+static void *grab_fd(int fd, unsigned long *size)
 {
 	struct stat st;
 	void *map;
diff --git a/zlibsupport.h b/zlibsupport.h
index be3c729..9ab0703 100644
--- a/zlibsupport.h
+++ b/zlibsupport.h
@@ -3,7 +3,6 @@
 
 /* Grab file.  Decompresses if that is supported.  Returns NULL on error. */
 extern void *grab_file(const char *filename, unsigned long *size);
-extern void *grab_fd(int fd, unsigned long *size);
 
 /* Free it up. */
 extern void release_file(void *data, unsigned long size);
-- 
1.7.3.5

--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux