summaryrefslogtreecommitdiff
path: root/ace/POSIX_Proactor.cpp
diff options
context:
space:
mode:
authoralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-03 04:50:09 +0000
committeralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-03 04:50:09 +0000
commiteb0e76b1b0465d2cb032baf46aafab711a931618 (patch)
tree5babf16044a0c09acb2e5d512a1293c82f71c2fd /ace/POSIX_Proactor.cpp
parent6fa1349d9a13e2867a78b3591c22a89203cfb0f4 (diff)
downloadATCD-eb0e76b1b0465d2cb032baf46aafab711a931618.tar.gz
Using static cast to down cast from <aiocb *> to
<ACE_POSIX_Asynch_Result *>. Thanks to John.Mulhern@lawson.com for reporting the warnings in HP UX.
Diffstat (limited to 'ace/POSIX_Proactor.cpp')
-rw-r--r--ace/POSIX_Proactor.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/ace/POSIX_Proactor.cpp b/ace/POSIX_Proactor.cpp
index d3571f8adbc..1801e67ee5f 100644
--- a/ace/POSIX_Proactor.cpp
+++ b/ace/POSIX_Proactor.cpp
@@ -746,14 +746,9 @@ ACE_POSIX_AIOCB_Proactor::handle_events (unsigned long milli_seconds)
ACE_ASSERT (ai != this->aiocb_list_max_size_);
// Retrive the result pointer.
- ACE_POSIX_Asynch_Result *asynch_result = ACE_dynamic_cast (ACE_POSIX_Asynch_Result *,
- this->aiocb_list_[ai]);
- if (asynch_result == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%N:%l:(%P | %t)::%p\n",
- "ACE_POSIX_AIOCB_Proactor::handle_events:"
- "Dynamic cast to ACE_POSIX_Asynch_Result failed"),
- -1);
+ ACE_POSIX_Asynch_Result *asynch_result =
+ (ACE_POSIX_Asynch_Result *) this->aiocb_list_[ai];
+
// Invalidate entry in the aiocb list.
this->aiocb_list_[ai] = 0;