]> git.proxmox.com Git - libgit2.git/commitdiff
Make internal methods static
authorVicent Marti <tanoku@gmail.com>
Mon, 3 Jan 2011 19:46:18 +0000 (21:46 +0200)
committerVicent Marti <tanoku@gmail.com>
Mon, 3 Jan 2011 19:46:18 +0000 (21:46 +0200)
Keep all the repository init code as static.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
src/repository.c

index 6af75f7d00799fbd389c81b084ed85beb5868851..74b12c4baebc3fd6f80a00f57fdfff07377c926b 100644 (file)
@@ -740,14 +740,14 @@ int git_object_typeisloose(git_otype type)
 
 
 
-int repo_init_reinit(repo_init *results)
+static int repo_init_reinit(repo_init *results)
 {
        /* TODO: reinit the repository */
        results->has_been_reinit = 1;
        return GIT_SUCCESS;
 }
 
-int repo_init_createhead(const char *head_path)
+static int repo_init_createhead(const char *head_path)
 {
        git_file fd;
        int error = GIT_SUCCESS;
@@ -765,7 +765,7 @@ int repo_init_createhead(const char *head_path)
        return error;
 }
 
-int repo_init_structure(repo_init *results)
+static int repo_init_structure(repo_init *results)
 {
        const int mode = 0755; /* or 0777 ? */
 
@@ -813,7 +813,7 @@ int repo_init_structure(repo_init *results)
        return GIT_SUCCESS;
 }
 
-int repo_init_find_dir(repo_init *results, const char* path)
+static int repo_init_find_dir(repo_init *results, const char* path)
 {
        const int MAX_GITDIR_TREE_STRUCTURE_PATH_LENGTH = 66;