@matheusbsbs / matheus-bagliano / commits / 8f9777801d
Fork 0

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. Signed-off-by: Junio C Hamano <junkio@cox.net>

Rene Scharfe committed Oct 14, 2006 at 12:45 UTC 8f9777801d09b195e1820061914ec27fcd5975c8
2 files changed +3 -12
cache.h
-6
@@ -247,12 +247,6 @@ extern void * unpack_sha1_file(void *map, unsigned long mapsize, char *type, uns
247 extern void * read_sha1_file(const unsigned char *sha1, char *type, unsigned long *size);
248 extern int hash_sha1_file(void *buf, unsigned long len, const char *type, unsigned char *sha1);
249 extern int write_sha1_file(void *buf, unsigned long len, const char *type, unsigned char *return_sha1);
250 -extern char *write_sha1_file_prepare(void *buf,
251 - unsigned long len,
252 - const char *type,
253 - unsigned char *sha1,
254 - unsigned char *hdr,
255 - int *hdrlen);
250
251 extern int check_sha1_signature(const unsigned char *sha1, void *buf, unsigned long size, const char *type);
252
sha1_file.c
+3 -6
@@ -1347,12 +1347,9 @@ void *read_object_with_reference(const unsigned char *sha1,
1347 }
1348 }
1349
1350 -char *write_sha1_file_prepare(void *buf,
1351 - unsigned long len,
1352 - const char *type,
1353 - unsigned char *sha1,
1354 - unsigned char *hdr,
1355 - int *hdrlen)
1350 +static char *write_sha1_file_prepare(void *buf, unsigned long len,
1351 + const char *type, unsigned char *sha1,
1352 + unsigned char *hdr, int *hdrlen)
1353 {
1354 SHA_CTX c;
1355