Commit 04fd2665 by Krzysztof Adamski Committed by Russell Belfer

Move statement after declarations in add example.

parent 9a0e42c6
...@@ -31,11 +31,10 @@ void init_array(git_strarray *array, int argc, char **argv) ...@@ -31,11 +31,10 @@ void init_array(git_strarray *array, int argc, char **argv)
int print_matched_cb(const char *path, const char *matched_pathspec, void *payload) int print_matched_cb(const char *path, const char *matched_pathspec, void *payload)
{ {
(void)matched_pathspec;
struct print_payload p = *(struct print_payload*)(payload); struct print_payload p = *(struct print_payload*)(payload);
int ret; int ret;
git_status_t status; git_status_t status;
(void)matched_pathspec;
if (git_status_file(&status, p.repo, path)) { if (git_status_file(&status, p.repo, path)) {
return -1; //abort return -1; //abort
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment