msys2: launcher: fix warnings and errors under g++
authorSean Cross <sean@xobs.io>
Sun, 8 Sep 2019 07:50:24 +0000 (15:50 +0800)
committerSean Cross <sean@xobs.io>
Sun, 8 Sep 2019 07:50:24 +0000 (15:50 +0800)
commit417f3fe6b19a0ed36cabe526fe3c67214b32971d
treec0b386b5af51d61869bdd8ef21b8325c70d3d710
parentc1b628508d54eb0ab6e5c9559063330a409d0a51
msys2: launcher: fix warnings and errors under g++

When building under G++, certain C-isms no longer work.  For example,
we must now cast the return from `calloc()`.

Fix `launcher.c` so that it builds under whatever $CXX is set to,
which is usually a C++ compiler.

Signed-off-by: Sean Cross <sean@xobs.io>
misc/launcher.c