diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-01-03 21:46:18 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-01-03 21:46:18 +0200 |
| commit | fb3cd6bca40ef942898e9d5ae5d9f305deefcc40 (patch) | |
| tree | bb5b4331b814c3ec2b98f8e114ff0737b96bbaa7 | |
| parent | d5f2520413939b114bdb4da95e6b10ee60e67f4c (diff) | |
| download | libgit2-fb3cd6bca40ef942898e9d5ae5d9f305deefcc40.tar.gz | |
Make internal methods static
Keep all the repository init code as static.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
| -rw-r--r-- | src/repository.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/repository.c b/src/repository.c index 6af75f7d0..74b12c4ba 100644 --- a/src/repository.c +++ b/src/repository.c @@ -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; |
