summaryrefslogtreecommitdiff
path: root/examples/general.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-20 19:57:46 -0700
committerBen Straub <bs@github.com>2012-11-27 13:18:28 -0800
commitf45d51ff8e04c6849413c13aedcf5abacc3c69bd (patch)
treedab9495e4954677f12475d8335cd2ea9e752f24e /examples/general.c
parentd9023dbe0cb5d47e30d86149701b7be9006f7683 (diff)
downloadlibgit2-f45d51ff8e04c6849413c13aedcf5abacc3c69bd.tar.gz
API updates for index.h
Diffstat (limited to 'examples/general.c')
-rw-r--r--examples/general.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/general.c b/examples/general.c
index d9bb6c04d..9ea264ec6 100644
--- a/examples/general.c
+++ b/examples/general.c
@@ -371,7 +371,7 @@ int main (int argc, char** argv)
// All these properties are exported publicly in the `git_index_entry` struct
ecount = git_index_entrycount(index);
for (i = 0; i < ecount; ++i) {
- git_index_entry *e = git_index_get_byindex(index, i);
+ const git_index_entry *e = git_index_get_byindex(index, i);
printf("path: %s\n", e->path);
printf("mtime: %d\n", (int)e->mtime.seconds);