Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-21 06:57:46 +0400
committerBen Straub <bs@github.com>2012-11-28 01:18:28 +0400
commitf45d51ff8e04c6849413c13aedcf5abacc3c69bd (patch)
treedab9495e4954677f12475d8335cd2ea9e752f24e /examples/general.c
parentd9023dbe0cb5d47e30d86149701b7be9006f7683 (diff)
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);