summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d2216f2)
raw | patch | inline | side by side (parent: d2216f2)
author | Linus Torvalds <torvalds@osdl.org> | |
Tue, 11 Jul 2006 17:10:29 +0000 (10:10 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 11 Jul 2006 19:58:53 +0000 (12:58 -0700) |
Nobody else uses them, and I'm going to start changing them.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h | patch | blob | history | |
sha1_file.c | patch | blob | history |
index b5e3f8fa21e49e2e209f0edc2e42878368d7d817..d433d46f23c956aa13b9f0d97344f792234e94ab 100644 (file)
--- a/cache.h
+++ b/cache.h
char *enter_repo(char *path, int strict);
/* Read and unpack a sha1 file into memory, write memory to a sha1 file */
-extern int unpack_sha1_header(z_stream *stream, void *map, unsigned long mapsize, void *buffer, unsigned long size);
-extern int parse_sha1_header(char *hdr, char *type, unsigned long *sizep);
extern int sha1_object_info(const unsigned char *, char *, unsigned long *);
extern void * unpack_sha1_file(void *map, unsigned long mapsize, char *type, unsigned long *size);
extern void * read_sha1_file(const unsigned char *sha1, char *type, unsigned long *size);
diff --git a/sha1_file.c b/sha1_file.c
index 459430a56c10df4ad02195ef83d289b753222ffc..8734d501fec50dc16b298e1473749c64ec25fe81 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
return map;
}
-int unpack_sha1_header(z_stream *stream, void *map, unsigned long mapsize, void *buffer, unsigned long size)
+static int unpack_sha1_header(z_stream *stream, void *map, unsigned long mapsize, void *buffer, unsigned long size)
{
/* Get the data stream */
memset(stream, 0, sizeof(*stream));
@@ -720,7 +720,7 @@ static void *unpack_sha1_rest(z_stream *stream, void *buffer, unsigned long size
* too permissive for what we want to check. So do an anal
* object header parse by hand.
*/
-int parse_sha1_header(char *hdr, char *type, unsigned long *sizep)
+static int parse_sha1_header(char *hdr, char *type, unsigned long *sizep)
{
int i;
unsigned long size;