summaryrefslogtreecommitdiff
path: root/examples/IPC_SAP/SOCK_SAP
diff options
context:
space:
mode:
authorkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-06-15 22:48:56 +0000
committerkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-06-15 22:48:56 +0000
commit55ea257afe430f2e72542b0e0f23677136e2d5d7 (patch)
tree894d5f5ffc82a78a575e08e2151745609f37abc6 /examples/IPC_SAP/SOCK_SAP
parent87e9c8943e0af8398e107933a7c591651d37a52e (diff)
downloadATCD-55ea257afe430f2e72542b0e0f23677136e2d5d7.tar.gz
ChangeLogTag: Fri Jun 15 17:40:51 2001 Krishnakumar B <kitty@cs.wustl.edu>
Diffstat (limited to 'examples/IPC_SAP/SOCK_SAP')
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp4
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
index 80e0f9961b8..d0179bbc477 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
@@ -23,14 +23,14 @@ run_server (ACE_THR_FUNC server,
// Spawn a new thread and run the new connection in that thread of
// control using the <server> function as the entry point.
if (ACE_Thread_Manager::instance ()->spawn (server,
- ACE_reinterpret_cast(void *,
+ ACE_reinterpret_cast(void *,
handle),
THR_DETACHED) == -1)
ACE_ERROR ((LM_ERROR,
"(%P|%t) %p\n",
"spawn"));
#else
- (*server) ((void *) handle);
+ (*server) (ACE_reinterpret_cast(void *, handle));
#endif /* ACE_HAS_THREADS */
}
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp
index 34c156d37b6..2e136782c21 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp
@@ -137,7 +137,7 @@ run_event_loop (const char rendezvous[])
"spawn"),
1);
#else
- server ((void *) new_stream.get_handle ());
+ server (ACE_reinterpret_cast (void *, new_stream.get_handle ()));
#endif /* ACE_HAS_THREADS */
}