aboutsummaryrefslogtreecommitdiff
path: root/local-pull.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-04 15:47:28 -0700
committerJunio C Hamano <junkio@cox.net>2005-09-04 15:47:28 -0700
commitf5f2c52bb08a7fc5bde6a7eb6552235df9daca71 (patch)
tree8a3114a7c1ca47a98b03a01f688666a026a6948f /local-pull.c
parent8afaf4cbefc735d71d1417a74b9cc20b0e3c6770 (diff)
parent52be5fcd29e074cb549b9a92ff8caceb736e4851 (diff)
downloadgit-f5f2c52bb08a7fc5bde6a7eb6552235df9daca71.tar.xz
Merge branch 'master' of .
Diffstat (limited to 'local-pull.c')
-rw-r--r--local-pull.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/local-pull.c b/local-pull.c
index 8b16f50e33..ca0003ba2a 100644
--- a/local-pull.c
+++ b/local-pull.c
@@ -17,7 +17,7 @@ void prefetch(unsigned char *sha1)
static struct packed_git *packs = NULL;
-void setup_index(unsigned char *sha1)
+static void setup_index(unsigned char *sha1)
{
struct packed_git *new_pack;
char filename[PATH_MAX];
@@ -30,7 +30,7 @@ void setup_index(unsigned char *sha1)
packs = new_pack;
}
-int setup_indices()
+static int setup_indices(void)
{
DIR *dir;
struct dirent *de;
@@ -49,7 +49,7 @@ int setup_indices()
return 0;
}
-int copy_file(const char *source, const char *dest, const char *hex)
+static int copy_file(const char *source, const char *dest, const char *hex)
{
if (use_link) {
if (!link(source, dest)) {
@@ -97,7 +97,7 @@ int copy_file(const char *source, const char *dest, const char *hex)
return -1;
}
-int fetch_pack(unsigned char *sha1)
+static int fetch_pack(const unsigned char *sha1)
{
struct packed_git *target;
char filename[PATH_MAX];
@@ -125,7 +125,7 @@ int fetch_pack(unsigned char *sha1)
return 0;
}
-int fetch_file(unsigned char *sha1)
+static int fetch_file(const unsigned char *sha1)
{
static int object_name_start = -1;
static char filename[PATH_MAX];