summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2001-12-16 16:01:36 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2001-12-16 16:01:36 +0000
commit012cd4da0dc0f79d64b29561ea366a6a7d7db4d3 (patch)
treea5a8c4a6f5d78ebfb4cd39fbea819b210f4ff591 /examples
parentba0f7d09deb90e86d807bf6f31f7a3824193ea02 (diff)
downloadATCD-012cd4da0dc0f79d64b29561ea366a6a7d7db4d3.tar.gz
ChangeLogTag: Sun Dec 16 16:56:08 2001 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'examples')
-rw-r--r--examples/IPC_SAP/UPIPE_SAP/ex1.cpp6
-rw-r--r--examples/IPC_SAP/UPIPE_SAP/ex2.cpp8
-rw-r--r--examples/IPC_SAP/UPIPE_SAP/ex3.cpp4
3 files changed, 9 insertions, 9 deletions
diff --git a/examples/IPC_SAP/UPIPE_SAP/ex1.cpp b/examples/IPC_SAP/UPIPE_SAP/ex1.cpp
index 411b5f1a089..96ad8f71845 100644
--- a/examples/IPC_SAP/UPIPE_SAP/ex1.cpp
+++ b/examples/IPC_SAP/UPIPE_SAP/ex1.cpp
@@ -26,7 +26,7 @@ ACE_RCSID(UPIPE_SAP, ex1, "$Id$")
#if defined (ACE_HAS_THREADS)
// Global pattern
-static ACE_UPIPE_Addr addr ("pattern");
+static ACE_UPIPE_Addr addr (ACE_TEXT("pattern"));
// peer1 thread entry point.
@@ -156,7 +156,7 @@ peer2 (void *)
}
int
-main (int, char *[])
+main (int, ACE_TCHAR *[])
{
// Spawn a peer2 thread.
if (ACE_Thread_Manager::instance ()->spawn (ACE_THR_FUNC (peer2),
@@ -172,7 +172,7 @@ main (int, char *[])
}
#else
int
-main (int, char *[])
+main (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"threads not supported on this platform\n"),
diff --git a/examples/IPC_SAP/UPIPE_SAP/ex2.cpp b/examples/IPC_SAP/UPIPE_SAP/ex2.cpp
index cbdb90dcfc4..dfeec7d1ab4 100644
--- a/examples/IPC_SAP/UPIPE_SAP/ex2.cpp
+++ b/examples/IPC_SAP/UPIPE_SAP/ex2.cpp
@@ -34,7 +34,7 @@ supplier (void *)
{
ACE_UPIPE_Stream s_stream;
- ACE_UPIPE_Addr c_addr ("pattern");
+ ACE_UPIPE_Addr c_addr (ACE_TEXT("pattern"));
ACE_Auto_Basic_Array_Ptr<char> mybuf (new char[size]);
@@ -100,7 +100,7 @@ consumer (void *)
ACE_DEBUG ((LM_DEBUG,
"set HWM failed\n"));
- ACE_UPIPE_Addr serv_addr ("pattern");
+ ACE_UPIPE_Addr serv_addr (ACE_TEXT("pattern"));
// accept will wait up to 4 seconds
ACE_UPIPE_Acceptor acc (serv_addr);
@@ -149,7 +149,7 @@ consumer (void *)
}
int
-main (int argc, char *argv[])
+main (int argc, ACE_TCHAR *argv[])
{
size = argc > 1 ? ACE_OS::atoi (argv[1]) : 32;
iterations = argc > 2 ? ACE_OS::atoi (argv[2]) : 16;
@@ -168,7 +168,7 @@ main (int argc, char *argv[])
}
#else
int
-main (int, char *[])
+main (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"threads not supported on this platform\n"),
diff --git a/examples/IPC_SAP/UPIPE_SAP/ex3.cpp b/examples/IPC_SAP/UPIPE_SAP/ex3.cpp
index a97b75d23d1..6efc34b8c91 100644
--- a/examples/IPC_SAP/UPIPE_SAP/ex3.cpp
+++ b/examples/IPC_SAP/UPIPE_SAP/ex3.cpp
@@ -34,7 +34,7 @@ static void *
supplier (void *)
{
ACE_UPIPE_Stream s_stream;
- ACE_UPIPE_Addr c_addr ("pattern");
+ ACE_UPIPE_Addr c_addr (ACE_TEXT("pattern"));
ACE_UPIPE_Connector con;
@@ -71,7 +71,7 @@ static void *
consumer (void *)
{
ACE_UPIPE_Stream c_stream;
- ACE_UPIPE_Addr serv_addr ("pattern");
+ ACE_UPIPE_Addr serv_addr (ACE_TEXT("pattern"));
// Accept will wait up to 4 seconds
ACE_UPIPE_Acceptor acc (serv_addr);