summaryrefslogtreecommitdiff
path: root/examples/add.c
diff options
context:
space:
mode:
authorMiha <miha.ravselj@ib-caddy.si>2014-02-25 11:56:11 +0100
committerMiha <miha.ravselj@ib-caddy.si>2014-02-25 11:56:11 +0100
commit300f44125a5abb00f6185babc9bb828aec556015 (patch)
treea33c83a50371201aa980d1eec45f351c8ac9d261 /examples/add.c
parentcb81c3a764447ceb2cd693935bf970138ea60ccc (diff)
downloadlibgit2-300f44125a5abb00f6185babc9bb828aec556015.tar.gz
- BUGFIX #2133 (@fourplusone) in smart_protocol.c
- added MSVC cmake definitions to disable warnings - general.c is rewritten so it is ansi-c compatible and compiles ok on microsoft windows - some MSVC reported warning fixes
Diffstat (limited to 'examples/add.c')
-rw-r--r--examples/add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/add.c b/examples/add.c
index 336596bde..0c6076e81 100644
--- a/examples/add.c
+++ b/examples/add.c
@@ -78,7 +78,7 @@ int print_matched_cb(const char *path, const char *matched_pathspec, void *paylo
git_status_t status;
(void)matched_pathspec;
- if (git_status_file(&status, p.repo, path)) {
+ if (git_status_file((unsigned int*)(&status), p.repo, path)) {
return -1; //abort
}