diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-05-29 14:24:02 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-29 14:24:02 -0700 |
commit | 7e2d574c37c6d53f09ceeb650f7af001aa50e987 (patch) | |
tree | a68235d36ae82d5401b93ccc2a84c92acaf29cf3 /test-subprocess.c | |
parent | 2f1ef15070a8664d3194d164f20283d78571e51c (diff) | |
parent | 84d32bf7678259c08406571cd6ce4b7a6724dcba (diff) | |
download | git-7e2d574c37c6d53f09ceeb650f7af001aa50e987.tar.gz git-7e2d574c37c6d53f09ceeb650f7af001aa50e987.tar.xz |
Merge branch 'rj/sparse'
* rj/sparse:
sparse: Fix mingw_main() argument number/type errors
compat/mingw.c: Fix some sparse warnings
compat/win32mmap.c: Fix some sparse warnings
compat/poll/poll.c: Fix a sparse warning
compat/win32/pthread.c: Fix a sparse warning
compat/unsetenv.c: Fix a sparse warning
compat/nedmalloc: Fix compiler warnings on linux
compat/nedmalloc: Fix some sparse warnings
compat/fnmatch/fnmatch.c: Fix a sparse error
compat/regex/regexec.c: Fix some sparse warnings
Diffstat (limited to 'test-subprocess.c')
-rw-r--r-- | test-subprocess.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test-subprocess.c b/test-subprocess.c index f2d4c0d22..93525eb7b 100644 --- a/test-subprocess.c +++ b/test-subprocess.c @@ -1,7 +1,7 @@ #include "cache.h" #include "run-command.h" -int main(int argc, const char **argv) +int main(int argc, char **argv) { struct child_process cp; int nogit = 0; @@ -15,6 +15,6 @@ int main(int argc, const char **argv) } memset(&cp, 0, sizeof(cp)); cp.git_cmd = 1; - cp.argv = argv + 1; + cp.argv = (const char **)argv + 1; return run_command(&cp); } |