Skip to content

Commit

Permalink
Make write_sha1_file_prepare() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rene Scharfe authored and Junio C Hamano committed Oct 14, 2006
1 parent abdc3fc commit 8f97778
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
6 changes: 0 additions & 6 deletions cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 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);

Expand Down
9 changes: 3 additions & 6 deletions sha1_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1347,12 +1347,9 @@ void *read_object_with_reference(const unsigned char *sha1,
}
}

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;

Expand Down

0 comments on commit 8f97778

Please sign in to comment.