Update of /cvsroot/mingw/mingw-get/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv10399/src
Modified Files:
clistub.c
Log Message:
Avoid some potential GCC warnings.
Index: clistub.c
===================================================================
RCS file: /cvsroot/mingw/mingw-get/src/clistub.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** clistub.c 31 Oct 2009 23:38:07 -0000 1.1
--- clistub.c 12 Nov 2009 22:33:26 -0000 1.2
***************
*** 35,38 ****
--- 35,39 ----
#include <stdlib.h>
#include <libgen.h>
+ #include <process.h>
#define EXIT_FATAL EXIT_FAILURE + 1
***************
*** 198,202 ****
char gui_program[1 + snprintf( NULL, 0, "%S", libexec_path )];
snprintf( gui_program, sizeof( gui_program ), "%S", libexec_path );
! int status = execv( gui_program, argv );
/* If we get to here, then the GUI could not be started...
--- 199,203 ----
char gui_program[1 + snprintf( NULL, 0, "%S", libexec_path )];
snprintf( gui_program, sizeof( gui_program ), "%S", libexec_path );
! int status = execv( gui_program, (const char* const*)(argv) );
/* If we get to here, then the GUI could not be started...
|