summaryrefslogtreecommitdiff
path: root/examples/C++NPv2
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2002-08-21 21:50:01 +0000
committerSteve Huston <shuston@riverace.com>2002-08-21 21:50:01 +0000
commit6a98bd0e183dcdee00fc0f16cb2d1ca2fafbf85e (patch)
tree1e26ff12deca598b273ded814f4bd70d3ed109c6 /examples/C++NPv2
parent3f468a91bcb6efc278dcb6f691f192490638c497 (diff)
downloadATCD-6a98bd0e183dcdee00fc0f16cb2d1ca2fafbf85e.tar.gz
ChangeLogTag:Wed Aug 21 17:48:29 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'examples/C++NPv2')
-rw-r--r--examples/C++NPv2/TP_Logging_Server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/C++NPv2/TP_Logging_Server.cpp b/examples/C++NPv2/TP_Logging_Server.cpp
index 11f76255407..d1a4dbd2eec 100644
--- a/examples/C++NPv2/TP_Logging_Server.cpp
+++ b/examples/C++NPv2/TP_Logging_Server.cpp
@@ -14,7 +14,7 @@ int TP_Logging_Handler::handle_input (ACE_HANDLE) {
ACE_Message_Block *log_blk = 0;
ACE_NEW_RETURN
(log_blk, ACE_Message_Block
- (ACE_static_cast (char *, this)), -1);
+ (ACE_reinterpret_cast (char *, this)), -1);
log_blk->cont (mblk);
ACE_GUARD_RETURN (ACE_Thread_Mutex, guard, lock_, -1);
if (TP_LOGGING_TASK::instance ()->put (log_blk) == -1)
@@ -49,7 +49,7 @@ TP_Logging_Handler::handle_close (ACE_HANDLE handle,
int TP_Logging_Task::svc () {
for (ACE_Message_Block *log_blk; getq (log_blk) != -1; ) {
- TP_Logging_Handler *tp_handler = ACE_static_cast
+ TP_Logging_Handler *tp_handler = ACE_reinterpret_cast
(TP_Logging_Handler *, log_blk->rd_ptr ());
Logging_Handler logging_handler (tp_handler->log_file ());
logging_handler.write_log_record (log_blk->cont ());