Win32: simplify internal mingw_spawn* APIs
commit8e68fb9383a5ebd8ea45ba8c99492c586cb505ad
authorKarsten Blees <blees@dcon.de>
Fri, 25 Nov 2011 20:33:17 +0000 (25 21:33 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 3 May 2012 16:13:25 +0000 (3 11:13 -0500)
tree4909a156e9fc682a8c06cbdd7082deef2d5bb8b3
parentcaf23f91f36bd91f1d9a37322c91c4888ed06194
Win32: simplify internal mingw_spawn* APIs

The only public spawn function that needs to tweak the environment is
mingw_spawnvpe (called from start_command). Nevertheless, all internal
spawn* functions take an env parameter and needlessly pass the global
char **environ around. Remove the env parameter where it's not needed.

This removes the internal mingw_execve abstraction, which is no longer
needed.

Signed-off-by: Karsten Blees <blees@dcon.de>
compat/mingw.c