diff options
Diffstat (limited to 'examples/Connection')
6 files changed, 6 insertions, 6 deletions
diff --git a/examples/Connection/blocking/SPIPE-acceptor.cpp b/examples/Connection/blocking/SPIPE-acceptor.cpp index 8885b0353cd..85f8acc6156 100644 --- a/examples/Connection/blocking/SPIPE-acceptor.cpp +++ b/examples/Connection/blocking/SPIPE-acceptor.cpp @@ -123,7 +123,7 @@ IPC_Server::parse_args (int argc, ACE_TCHAR *argv[]) { ACE_LOG_MSG->open (argv[0]); - ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("ut:r:")); + ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("ut:r:")); for (int c; (c = get_opt ()) != -1; ) { diff --git a/examples/Connection/blocking/SPIPE-connector.cpp b/examples/Connection/blocking/SPIPE-connector.cpp index 6618b64f0cb..9b2ea043c77 100644 --- a/examples/Connection/blocking/SPIPE-connector.cpp +++ b/examples/Connection/blocking/SPIPE-connector.cpp @@ -187,7 +187,7 @@ IPC_Client::parse_args (int argc, ACE_TCHAR *argv[]) { ACE_LOG_MSG->open (argv[0]); - ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("ui:r:")); + ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("ui:r:")); for (int c; (c = get_opt ()) != -1; ) { diff --git a/examples/Connection/blocking/test_spipe_acceptor.cpp b/examples/Connection/blocking/test_spipe_acceptor.cpp index 549690ebf43..83003eb1c85 100644 --- a/examples/Connection/blocking/test_spipe_acceptor.cpp +++ b/examples/Connection/blocking/test_spipe_acceptor.cpp @@ -25,7 +25,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) #else int -main (int, char *[]) +ACE_TMAIN (int, ACE_TCHAR *[]) { ACE_DEBUG ((LM_INFO, ACE_TEXT ("Asynchronous IO is unsupported.\n"))); diff --git a/examples/Connection/misc/test_upipe.cpp b/examples/Connection/misc/test_upipe.cpp index 23c85b283a3..bc786f428fe 100644 --- a/examples/Connection/misc/test_upipe.cpp +++ b/examples/Connection/misc/test_upipe.cpp @@ -113,7 +113,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) } #else int -main (int, char *[]) +ACE_TMAIN (int, ACE_TCHAR *[]) { ACE_ERROR_RETURN ((LM_ERROR, "your platform does not support threads\n"), diff --git a/examples/Connection/non_blocking/test_tli_acceptor.cpp b/examples/Connection/non_blocking/test_tli_acceptor.cpp index 8f281c26bd1..270f4cc3c47 100644 --- a/examples/Connection/non_blocking/test_tli_acceptor.cpp +++ b/examples/Connection/non_blocking/test_tli_acceptor.cpp @@ -16,7 +16,7 @@ typedef Svc_Handler<ACE_TLI_STREAM> SVC_HANDLER; typedef IPC_Server<SVC_HANDLER, ACE_TLI_ACCEPTOR> IPC_SERVER; int -main (int argc, char *argv[]) +ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { // Perform Service_Config initializations ACE_Service_Config daemon (argv[0]); diff --git a/examples/Connection/non_blocking/test_tli_connector.cpp b/examples/Connection/non_blocking/test_tli_connector.cpp index 67756fe795d..eb8bdf23c3f 100644 --- a/examples/Connection/non_blocking/test_tli_connector.cpp +++ b/examples/Connection/non_blocking/test_tli_connector.cpp @@ -14,7 +14,7 @@ typedef Peer_Handler<ACE_TLI_STREAM> PEER_HANDLER; typedef IPC_Client<PEER_HANDLER, ACE_TLI_CONNECTOR> IPC_CLIENT; int -main (int argc, char *argv[]) +ACE_TMAIN (int argc, ACE_TCHAR *argv[]) { // Perform Service_Config initializations ACE_Service_Config daemon (argv[0]); |