From 4af45526ceb8f086dda09ecc5350be63760180b4 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 24 Mar 2004 20:46:06 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3150 --- lib/diagnostics.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/diagnostics.C b/lib/diagnostics.C index a7f7795cef..28e60926ec 100644 --- a/lib/diagnostics.C +++ b/lib/diagnostics.C @@ -68,7 +68,7 @@ extern void boinc_quit(int sig); // int boinc_init_diag( unsigned long dwDiagnosticsFlags ) { - LPVOID lpRetVal; + void* lpRetVal; // Store Diagnostics Flags globally for use. g_BOINCDIAG_dwDiagnosticsFlags = dwDiagnosticsFlags; @@ -88,25 +88,25 @@ int boinc_init_diag( unsigned long dwDiagnosticsFlags ) { // Redirect stderr and/or stdout streams, if requested if ( g_BOINCDIAG_dwDiagnosticsFlags & BOINC_DIAG_REDIRECTSTDERR ) { - lpRetVal = (LPVOID) freopen(BOINC_DIAG_STDERR, "a", stderr); + lpRetVal = (void*) freopen(BOINC_DIAG_STDERR, "a", stderr); if ( NULL == lpRetVal ) BOINCFILEERROR( "Failed to reopen stderr for diagnostics redirection" ); } if ( g_BOINCDIAG_dwDiagnosticsFlags & BOINC_DIAG_REDIRECTSTDERROVERWRITE ) { - lpRetVal = (LPVOID) freopen(BOINC_DIAG_STDERR, "w", stderr); + lpRetVal = (void*) freopen(BOINC_DIAG_STDERR, "w", stderr); if ( NULL == lpRetVal ) BOINCFILEERROR( "Failed to reopen stderr for diagnostics redirection (overwrite)" ); } if ( g_BOINCDIAG_dwDiagnosticsFlags & BOINC_DIAG_REDIRECTSTDOUT ) { - lpRetVal = (LPVOID) freopen(BOINC_DIAG_STDOUT, "a", stdout); + lpRetVal = (void*) freopen(BOINC_DIAG_STDOUT, "a", stdout); if ( NULL == lpRetVal ) BOINCFILEERROR( "Failed to reopen stdout for diagnostics redirection" ); } if ( g_BOINCDIAG_dwDiagnosticsFlags & BOINC_DIAG_REDIRECTSTDOUTOVERWRITE ) { - lpRetVal = (LPVOID) freopen(BOINC_DIAG_STDOUT, "w", stdout); + lpRetVal = (void*) freopen(BOINC_DIAG_STDOUT, "w", stdout); if ( NULL == lpRetVal ) BOINCFILEERROR( "Failed to reopen stdout for diagnostics redirection (overwrite)" ); }