summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2006-03-01 02:30:54 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2006-03-01 02:30:54 +0000
commit23d003e87917e8a00ab40ffd7594c43ce3baa576 (patch)
tree879cd76a48d1d7285aac4d1c6dd8c55bcc223df0 /file_io
parent61e88e38ed20d99b3154b39b293175b44538cb99 (diff)
downloadapr-23d003e87917e8a00ab40ffd7594c43ce3baa576.tar.gz
Undo dangerous, potentially lethal casts.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@381874 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/win32/readwrite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/file_io/win32/readwrite.c b/file_io/win32/readwrite.c
index b57b61241..3faf7e0ed 100644
--- a/file_io/win32/readwrite.c
+++ b/file_io/win32/readwrite.c
@@ -71,7 +71,7 @@ static apr_status_t read_with_timeout(apr_file_t *file, void *buf, apr_size_t le
}
*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 @@ static apr_status_t read_with_timeout(apr_file_t *file, void *buf, apr_size_t le
switch (rv) {
case WAIT_OBJECT_0:
GetOverlappedResult(file->filehand, file->pOverlapped,
- (LPDWORD)nbytes, TRUE);
+ nbytes, TRUE);
rv = APR_SUCCESS;
break;
@@ -332,7 +332,7 @@ APR_DECLARE(apr_status_t) apr_file_write(apr_file_t *thefile, const void *buf, a
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: