Skip to contentSkip to conversation

Make write_sha1_file_prepare() static

PATCH In review Rene Scharfe 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Make write_sha1_file_prepare() static

There are no callers of write_sha1_file_prepare() left outside of sha1_file.c, so make it static.

---
 cache.h     |    6 ------
 sha1_file.c |    9 +++------
 2 files changed, 3 insertions(+), 12 deletions(-)
cache.h +0 -6
index aa3a562..c354701 100644
@@ -247,12 +247,6 @@ extern void * unpack_sha1_file(void *map
 extern void * read_sha1_file(const unsigned char *sha1, char *type, unsigned long *size);
 extern int hash_sha1_file(void *buf, unsigned long len, const char *type, unsigned char *sha1);
 extern int write_sha1_file(void *buf, unsigned long len, const char *type, unsigned char *return_sha1);
-extern char *write_sha1_file_prepare(void *buf,
-				     unsigned long len,
-				     const char *type,
-				     unsigned char *sha1,
-				     unsigned char *hdr,
-				     int *hdrlen);
 
 extern int check_sha1_signature(const unsigned char *sha1, void *buf, unsigned long size, const char *type);
 
sha1_file.c +3 -6
index 6c64ec4..d111be7 100644
@@ -1347,12 +1347,9 @@ void *read_object_with_reference(const u
 	}
 }
 
-char *write_sha1_file_prepare(void *buf,
-			      unsigned long len,
-			      const char *type,
-			      unsigned char *sha1,
-			      unsigned char *hdr,
-			      int *hdrlen)
+static char *write_sha1_file_prepare(void *buf, unsigned long len,
+                                     const char *type, unsigned char *sha1,
+                                     unsigned char *hdr, int *hdrlen)
 {
 	SHA_CTX c;
 
Signature · 1 line
1.4.3.rc2.gdce3