summaryrefslogtreecommitdiff
path: root/examples/Shared_Memory
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2004-07-13 02:52:19 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2004-07-13 02:52:19 +0000
commit5e0efc3ea893aa0c185b7efcc2b2d1d508eb4063 (patch)
treee73158206a0abeeb445b09c2c444671db14ece78 /examples/Shared_Memory
parent203800a52a289d866d38ac9daa4e7568d74d8be6 (diff)
downloadATCD-5e0efc3ea893aa0c185b7efcc2b2d1d508eb4063.tar.gz
ChangeLogTag:Mon Jul 12 19:51:21 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'examples/Shared_Memory')
-rw-r--r--examples/Shared_Memory/test_MM.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/Shared_Memory/test_MM.cpp b/examples/Shared_Memory/test_MM.cpp
index 5a7688af45b..09b4e5ea02a 100644
--- a/examples/Shared_Memory/test_MM.cpp
+++ b/examples/Shared_Memory/test_MM.cpp
@@ -48,16 +48,16 @@ server (void)
int
main (int, char *[])
{
- if (ACE_OS::mktemp (shm_key) == 0 || (ACE_OS::unlink (shm_key) == -1 && errno == EPERM))
+ if (ACE_OS::mktemp (ACE_TEXT_CHAR_TO_TCHAR (shm_key)) == 0 || (ACE_OS::unlink (shm_key) == -1 && errno == EPERM))
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", shm_key), 1);
switch (ACE_OS::fork ())
{
case -1:
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "fork"), 1);
- case 0:
+ case 0:
// Make sure the server starts up first.
- ACE_OS::sleep (1);
+ ACE_OS::sleep (1);
client ();
break;
default:
@@ -66,4 +66,3 @@ main (int, char *[])
}
return 0;
}
-