summaryrefslogtreecommitdiff
path: root/w32/subproc
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2005-06-27 15:40:56 +0000
committerPaul Smith <psmith@gnu.org>2005-06-27 15:40:56 +0000
commitb581e1350fefab3c625b0f08078017d05f9578d3 (patch)
tree923045f42579f156ca9b4e35d953493b14cb856e /w32/subproc
parenta36cfed31acd1a62f0d9f383c0c0de0c2f946d28 (diff)
downloadgunmake-b581e1350fefab3c625b0f08078017d05f9578d3.tar.gz
Fixes for some Windows/MSC compile issues.
wget command line option seems to have changed?
Diffstat (limited to 'w32/subproc')
-rw-r--r--w32/subproc/sub_proc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/w32/subproc/sub_proc.c b/w32/subproc/sub_proc.c
index 63911fc..6e36e37 100644
--- a/w32/subproc/sub_proc.c
+++ b/w32/subproc/sub_proc.c
@@ -536,15 +536,15 @@ process_begin(
/* Close the halves of the pipes we don't need */
if (pproc->sv_stdin) {
CloseHandle((HANDLE)pproc->sv_stdin[1]);
- (HANDLE)pproc->sv_stdin[1] = 0;
+ pproc->sv_stdin[1] = 0;
}
if (pproc->sv_stdout) {
CloseHandle((HANDLE)pproc->sv_stdout[1]);
- (HANDLE)pproc->sv_stdout[1] = 0;
+ pproc->sv_stdout[1] = 0;
}
if (pproc->sv_stderr) {
CloseHandle((HANDLE)pproc->sv_stderr[1]);
- (HANDLE)pproc->sv_stderr[1] = 0;
+ pproc->sv_stderr[1] = 0;
}
free( command_line );
@@ -657,7 +657,7 @@ process_pipe_io(
sub_process *pproc = (sub_process *)proc;
bool_t stdin_eof = FALSE, stdout_eof = FALSE, stderr_eof = FALSE;
HANDLE childhand = (HANDLE) pproc->pid;
- HANDLE tStdin, tStdout, tStderr;
+ HANDLE tStdin = NULL, tStdout = NULL, tStderr = NULL;
DWORD dwStdin, dwStdout, dwStderr;
HANDLE wait_list[4];
DWORD wait_count;
@@ -674,7 +674,7 @@ process_pipe_io(
if (!pproc->inp) {
stdin_eof = TRUE;
CloseHandle((HANDLE)pproc->sv_stdin[0]);
- (HANDLE)pproc->sv_stdin[0] = 0;
+ pproc->sv_stdin[0] = 0;
} else {
tStdin = (HANDLE) _beginthreadex( 0, 1024,
(unsigned (__stdcall *) (void *))proc_stdin_thread, pproc, 0,
@@ -739,7 +739,7 @@ process_pipe_io(
if (ready_hand == tStdin) {
CloseHandle((HANDLE)pproc->sv_stdin[0]);
- (HANDLE)pproc->sv_stdin[0] = 0;
+ pproc->sv_stdin[0] = 0;
CloseHandle(tStdin);
tStdin = 0;
stdin_eof = TRUE;
@@ -747,7 +747,7 @@ process_pipe_io(
} else if (ready_hand == tStdout) {
CloseHandle((HANDLE)pproc->sv_stdout[0]);
- (HANDLE)pproc->sv_stdout[0] = 0;
+ pproc->sv_stdout[0] = 0;
CloseHandle(tStdout);
tStdout = 0;
stdout_eof = TRUE;
@@ -755,7 +755,7 @@ process_pipe_io(
} else if (ready_hand == tStderr) {
CloseHandle((HANDLE)pproc->sv_stderr[0]);
- (HANDLE)pproc->sv_stderr[0] = 0;
+ pproc->sv_stderr[0] = 0;
CloseHandle(tStderr);
tStderr = 0;
stderr_eof = TRUE;