apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r381874 - /apr/apr/trunk/file_io/win32/readwrite.c
Date Wed, 01 Mar 2006 02:30:56 GMT
Author: wrowe
Date: Tue Feb 28 18:30:54 2006
New Revision: 381874

URL: http://svn.apache.org/viewcvs?rev=381874&view=rev
Log:

  Undo dangerous, potentially lethal casts.

Modified:
    apr/apr/trunk/file_io/win32/readwrite.c

Modified: apr/apr/trunk/file_io/win32/readwrite.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/file_io/win32/readwrite.c?rev=381874&r1=381873&r2=381874&view=diff
==============================================================================
--- apr/apr/trunk/file_io/win32/readwrite.c (original)
+++ apr/apr/trunk/file_io/win32/readwrite.c Tue Feb 28 18:30:54 2006
@@ -71,7 +71,7 @@
     }
 
     *nbytes = 0;
-    rv = ReadFile(file->filehand, buf, len, (LPDWORD)nbytes, file->pOverlapped);
+    rv = ReadFile(file->filehand, buf, len, nbytes, file->pOverlapped);
 
     if (!rv) {
         rv = apr_get_os_error();
@@ -88,7 +88,7 @@
             switch (rv) {
                 case WAIT_OBJECT_0:
                     GetOverlappedResult(file->filehand, file->pOverlapped, 
-                                        (LPDWORD)nbytes, TRUE);
+                                        nbytes, TRUE);
                     rv = APR_SUCCESS;
                     break;
 
@@ -332,7 +332,7 @@
                 rv = WaitForSingleObject(thefile->pOverlapped->hEvent, timeout_ms);
                 switch (rv) {
                     case WAIT_OBJECT_0:
-                        GetOverlappedResult(thefile->filehand, thefile->pOverlapped,
(LPDWORD)nbytes, TRUE);
+                        GetOverlappedResult(thefile->filehand, thefile->pOverlapped,
nbytes, TRUE);
                         rv = APR_SUCCESS;
                         break;
                     case WAIT_TIMEOUT:



Mime
View raw message