summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-09-24 10:32:40 -0700
committerVicent Martí <vicent@github.com>2013-09-24 10:32:40 -0700
commit4a1b40159b4b0b2a954d40e4489331e3f22c8994 (patch)
tree10e92543ca0ae12f39ede74cebb1d9f46d8e348f /include/git2
parent5dc8513b29dc5cc6c82159a4849dbf1f05516ed4 (diff)
parentd005885f0a7184629290dfcebed025b061551b40 (diff)
downloadlibgit2-4a1b40159b4b0b2a954d40e4489331e3f22c8994.tar.gz
Merge pull request #1865 from arrbee/various-cleanups
Various warning cleanup and minor fixes
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/index.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/index.h b/include/git2/index.h
index ba0bcc984..131d04945 100644
--- a/include/git2/index.h
+++ b/include/git2/index.h
@@ -120,9 +120,9 @@ typedef struct git_index_entry {
/** Capabilities of system that affect index actions. */
typedef enum {
- GIT_INDEXCAP_IGNORE_CASE = 1,
- GIT_INDEXCAP_NO_FILEMODE = 2,
- GIT_INDEXCAP_NO_SYMLINKS = 4,
+ GIT_INDEXCAP_IGNORE_CASE = 1u,
+ GIT_INDEXCAP_NO_FILEMODE = 2u,
+ GIT_INDEXCAP_NO_SYMLINKS = 4u,
GIT_INDEXCAP_FROM_OWNER = ~0u
} git_indexcap_t;
@@ -219,7 +219,7 @@ GIT_EXTERN(unsigned int) git_index_caps(const git_index *index);
* @param caps A combination of GIT_INDEXCAP values
* @return 0 on success, -1 on failure
*/
-GIT_EXTERN(int) git_index_set_caps(git_index *index, int caps);
+GIT_EXTERN(int) git_index_set_caps(git_index *index, unsigned int caps);
/**
* Update the contents of an existing index object in memory