diff --git a/sha1_file.c b/sha1_file.c
index 30bcd46ceb761b0f0b17295d532a6ddb5f33387a..7628ee97d9137c3cc2eae2e626fc708a88dc444a 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
*buf++ = hex[val >> 4];
*buf++ = hex[val & 0xf];
}
*buf++ = hex[val >> 4];
*buf++ = hex[val & 0xf];
}
-
+
return base;
}
return base;
}
*buf++ = hex[val >> 4];
*buf++ = hex[val & 0xf];
}
*buf++ = hex[val >> 4];
*buf++ = hex[val & 0xf];
}
-
+
return base;
}
return base;
}
static size_t pack_mapped;
struct packed_git *packed_git;
static size_t pack_mapped;
struct packed_git *packed_git;
-void pack_report()
+void pack_report(void)
{
fprintf(stderr,
"pack_report: getpagesize() = %10" SZ_FMT "\n"
{
fprintf(stderr,
"pack_report: getpagesize() = %10" SZ_FMT "\n"
@@ -959,7 +959,7 @@ int check_sha1_signature(const unsigned char *sha1, void *map, unsigned long siz
return hashcmp(sha1, real_sha1) ? -1 : 0;
}
return hashcmp(sha1, real_sha1) ? -1 : 0;
}
-void *map_sha1_file(const unsigned char *sha1, unsigned long *size)
+static void *map_sha1_file(const unsigned char *sha1, unsigned long *size)
{
struct stat st;
void *map;
{
struct stat st;
void *map;
unsigned long size;
/*
unsigned long size;
/*
- * The type can be at most ten bytes (including the
+ * The type can be at most ten bytes (including the
* terminating '\0' that we add), and is followed by
* a space.
*/
* terminating '\0' that we add), and is followed by
* a space.
*/
@@ -1738,7 +1738,7 @@ static int find_pack_entry(const unsigned char *sha1, struct pack_entry *e, cons
return 0;
}
return 0;
}
-struct packed_git *find_sha1_pack(const unsigned char *sha1,
+struct packed_git *find_sha1_pack(const unsigned char *sha1,
struct packed_git *packs)
{
struct packed_git *p;
struct packed_git *packs)
{
struct packed_git *p;