summaryrefslogtreecommitdiff
path: root/include/git2/tree.h
diff options
context:
space:
mode:
authorRomain Geissler <romain.geissler@gmail.com>2011-06-05 21:18:05 +0200
committerRomain Geissler <romain.geissler@gmail.com>2011-06-05 21:18:05 +0200
commite5c8009731f3ccaf67b5b62546d890301ecb1f25 (patch)
treee3bdd6b3a9c013560a1b9b9ea47dfd6023aeae5a /include/git2/tree.h
parent3a42e0a3705d5d47ed32579721a62edf4ff297b1 (diff)
downloadlibgit2-e5c8009731f3ccaf67b5b62546d890301ecb1f25.tar.gz
Tree: API uniformasation: Use unsigned int for all index number.
Diffstat (limited to 'include/git2/tree.h')
-rw-r--r--include/git2/tree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/tree.h b/include/git2/tree.h
index 0caf60a4..2a4522b3 100644
--- a/include/git2/tree.h
+++ b/include/git2/tree.h
@@ -84,7 +84,7 @@ GIT_EXTERN(const git_oid *) git_tree_id(git_tree *tree);
* @param tree a previously loaded tree.
* @return the number of entries in the tree
*/
-GIT_EXTERN(size_t) git_tree_entrycount(git_tree *tree);
+GIT_EXTERN(unsigned int) git_tree_entrycount(git_tree *tree);
/**
* Lookup a tree entry by its filename
@@ -102,7 +102,7 @@ GIT_EXTERN(const git_tree_entry *) git_tree_entry_byname(git_tree *tree, const c
* @param idx the position in the entry list
* @return the tree entry; NULL if not found
*/
-GIT_EXTERN(const git_tree_entry *) git_tree_entry_byindex(git_tree *tree, int idx);
+GIT_EXTERN(const git_tree_entry *) git_tree_entry_byindex(git_tree *tree, unsigned int idx);
/**
* Get the UNIX file attributes of a tree entry