diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2011-08-30 23:55:22 +0300 |
---|---|---|
committer | Kirill A. Shutemov <kirill@shutemov.name> | 2011-08-30 23:55:22 +0300 |
commit | d568d5856bcc4f283ae1dda0e27d680ee22fb067 (patch) | |
tree | af00ec95f08de8425111d3f57474b6ad63f826b1 /src/odb_pack.c | |
parent | 51d0044629d0ac3e0f419910996c972b547f1156 (diff) | |
download | libgit2-d568d5856bcc4f283ae1dda0e27d680ee22fb067.tar.gz |
CMakefile: add -Wmissing-prototypes and fix warnings
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Diffstat (limited to 'src/odb_pack.c')
-rw-r--r-- | src/odb_pack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c index 5b2be58e1..b3db27280 100644 --- a/src/odb_pack.c +++ b/src/odb_pack.c @@ -381,7 +381,7 @@ int pack_backend__read_header(git_rawobj *obj, git_odb_backend *backend, const g } */ -int pack_backend__read(void **buffer_p, size_t *len_p, git_otype *type_p, git_odb_backend *backend, const git_oid *oid) +static int pack_backend__read(void **buffer_p, size_t *len_p, git_otype *type_p, git_odb_backend *backend, const git_oid *oid) { struct git_pack_entry e; git_rawobj raw; @@ -400,7 +400,7 @@ int pack_backend__read(void **buffer_p, size_t *len_p, git_otype *type_p, git_od return GIT_SUCCESS; } -int pack_backend__read_prefix( +static int pack_backend__read_prefix( git_oid *out_oid, void **buffer_p, size_t *len_p, @@ -439,13 +439,13 @@ int pack_backend__read_prefix( return GIT_SUCCESS; } -int pack_backend__exists(git_odb_backend *backend, const git_oid *oid) +static int pack_backend__exists(git_odb_backend *backend, const git_oid *oid) { struct git_pack_entry e; return pack_entry_find(&e, (struct pack_backend *)backend, oid) == GIT_SUCCESS; } -void pack_backend__free(git_odb_backend *_backend) +static void pack_backend__free(git_odb_backend *_backend) { struct pack_backend *backend; size_t i; |