index.c: Fix a sparse "symbol not declared" warning
authorRamsay Jones <[email protected]>
Tue, 12 Oct 2010 18:01:13 +0000 (12 19:01 +0100)
committerAndreas Ericsson <[email protected]>
Thu, 28 Oct 2010 17:24:01 +0000 (28 19:24 +0200)
In particular, sparse issues a warning about the declaration
of git_index__parse_tree(). However, I suspect that, at some
point, the git_index__parse_treecache() function (which does
not have a definition) was renamed and the declaration was
missed.  In order to suppress this warning, we simply change
the name of the function in the declaration from git_index\
__parse_treecache() to git_index__parse_tree().

Signed-off-by: Ramsay Jones <[email protected]>
src/index.c

index ccf3e30..5ce76c8 100644 (file)
@@ -91,7 +91,7 @@ struct entry_long {
 /* local declarations */
 size_t git_index__parse_extension(git_index *index, const char *buffer, size_t buffer_size);
 size_t git_index__parse_entry(git_index_entry *dest, const void *buffer, size_t buffer_size);
-int git_index__parse_treecache(git_index *index, const char *buffer, size_t buffer_size);
+int git_index__parse_tree(git_index *index, const char *buffer, size_t buffer_size);
 int git_index__parse_header(struct index_header *dest, const void *buffer);
 int git_index__parse(git_index *index, const char *buffer, size_t buffer_size);