Skip to content
Snippets Groups Projects
Commit 8f977780 authored by René Scharfe's avatar René Scharfe Committed by Junio C Hamano
Browse files

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: default avatarJunio C Hamano <junkio@cox.net>
parent abdc3fc8
Branches
Tags
No related merge requests found
...@@ -247,12 +247,6 @@ extern void * unpack_sha1_file(void *map, unsigned long mapsize, char *type, uns ...@@ -247,12 +247,6 @@ extern void * unpack_sha1_file(void *map, unsigned long mapsize, char *type, uns
extern void * read_sha1_file(const unsigned char *sha1, char *type, unsigned long *size); 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 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 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); extern int check_sha1_signature(const unsigned char *sha1, void *buf, unsigned long size, const char *type);
......
...@@ -1347,12 +1347,9 @@ void *read_object_with_reference(const unsigned char *sha1, ...@@ -1347,12 +1347,9 @@ void *read_object_with_reference(const unsigned char *sha1,
} }
} }
char *write_sha1_file_prepare(void *buf, static char *write_sha1_file_prepare(void *buf, unsigned long len,
unsigned long len, const char *type, unsigned char *sha1,
const char *type, unsigned char *hdr, int *hdrlen)
unsigned char *sha1,
unsigned char *hdr,
int *hdrlen)
{ {
SHA_CTX c; SHA_CTX c;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment