Change interface for Tree Index attr (always unsigned)

Signed-off-by: Vicent Marti <tanoku@gmail.com>
This commit is contained in:
Vicent Marti 2011-03-05 13:45:05 +02:00
parent 9de27ad0c4
commit 545a6915eb
2 changed files with 3 additions and 2 deletions

View File

@ -214,8 +214,9 @@ GIT_EXTERN(void) git_tree_entry_set_name(git_tree_entry *entry, const char *name
* *
* @param entry Entry object which will be modified * @param entry Entry object which will be modified
* @param oid new attributes for the entry * @param oid new attributes for the entry
* @return 0 if the attributes were properly set; error code otherwise
*/ */
GIT_EXTERN(int) git_tree_entry_set_attributes(git_tree_entry *entry, int attr); GIT_EXTERN(int) git_tree_entry_set_attributes(git_tree_entry *entry, unsigned int attr);
/** @} */ /** @} */
GIT_END_DECL GIT_END_DECL

View File

@ -107,7 +107,7 @@ const git_oid *git_tree_id(git_tree *c)
return git_object_id((git_object *)c); return git_object_id((git_object *)c);
} }
int git_tree_entry_set_attributes(git_tree_entry *entry, int attr) int git_tree_entry_set_attributes(git_tree_entry *entry, unsigned int attr)
{ {
assert(entry && entry->owner); assert(entry && entry->owner);