diff options
author | Russell Belfer <rb@github.com> | 2012-11-20 16:36:06 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-27 13:18:28 -0800 |
commit | 793c4385597d0786242e17c8ef37cdfa83f1865c (patch) | |
tree | 22e9b48db487577d865a174bc5b21a13a176c78f /examples/general.c | |
parent | 54b2a37ac7715c74e5b06b76eb2b631987d7b6f8 (diff) | |
download | libgit2-793c4385597d0786242e17c8ef37cdfa83f1865c.tar.gz |
Update diff callback param order
This makes the diff functions that take callbacks both take
the payload parameter after the callback function pointers and
pass the payload as the last argument to the callback function
instead of the first. This should make them consistent with
other callbacks across the API.
Diffstat (limited to 'examples/general.c')
-rw-r--r-- | examples/general.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/general.c b/examples/general.c index c4ff21d8b..d9bb6c04d 100644 --- a/examples/general.c +++ b/examples/general.c @@ -298,7 +298,7 @@ int main (int argc, char** argv) // Note that this buffer may not be contain ASCII data for certain blobs (e.g. binary files): // do not consider the buffer a NULL-terminated string, and use the `git_blob_rawsize` attribute to // find out its exact size in bytes - printf("Blob Size: %ld\n", git_blob_rawsize(blob)); // 8 + printf("Blob Size: %ld\n", (long)git_blob_rawsize(blob)); // 8 git_blob_rawcontent(blob); // "content" // ### Revwalking |