summaryrefslogtreecommitdiff
path: root/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp')
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp
index 8f60eeff7e5..e7ebe811fd2 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp
@@ -25,21 +25,21 @@ run_client (void)
ACE_MEM_Addr server_addr (ACE_DEFAULT_SERVER_PORT);
if (connector.connect (stream, server_addr.get_remote_addr ()) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "connect"), -1);
+ ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("%p\n"),
+ ACE_TEXT ("connect")), -1);
char buf [MAXPATHLEN];
while (fgets (buf, MAXPATHLEN, stdin) >0)
{
stream.send (buf, ACE_OS::strlen (buf)+1);
stream.recv (buf, MAXPATHLEN);
- ACE_DEBUG ((LM_DEBUG, "Echo: %s\n", buf));
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Echo: %C\n"), buf));
}
return 0;
}
-int
-main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_UNUSED_ARG(argc);
// Initialize the logger.