summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp b/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
index 8b5ab6388e2..813e88d1314 100644
--- a/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
+++ b/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
@@ -145,7 +145,8 @@ int
Process_Per_Connection_Logging_Server::run_worker (int, char *argv[])
{
int client_handle_i = atoi (argv[2]);
- ACE_HANDLE client_handle = ACE_static_cast (ACE_HANDLE, client_handle_i);
+ ACE_HANDLE client_handle =
+ ACE_reinterpret_cast (ACE_HANDLE, client_handle_i);
ACE_SOCK_Stream client (client_handle);
handle_data (&client);