summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2007-03-26 20:45:38 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2007-03-26 20:45:38 +0000
commit4707448faf8756c8866e27f3130c63d1f74cff49 (patch)
tree4399312d331a44142749df505f432a67feb38a92 /TAO/examples/Simple
parent2cc47e2369226e0cd7f1d8629d70ca19cd1581ae (diff)
downloadATCD-4707448faf8756c8866e27f3130c63d1f74cff49.tar.gz
ChangeLogTag:Mon Mar 26 20:44:40 UTC 2007 William R. Otte <wotte@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/examples/Simple')
-rw-r--r--TAO/examples/Simple/time/Time_Client_i.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/TAO/examples/Simple/time/Time_Client_i.cpp b/TAO/examples/Simple/time/Time_Client_i.cpp
index 83ebb85e2e2..a46ea8d6b84 100644
--- a/TAO/examples/Simple/time/Time_Client_i.cpp
+++ b/TAO/examples/Simple/time/Time_Client_i.cpp
@@ -37,20 +37,21 @@ Time_Client_i::run (const char *name,
#else
CORBA::Long padding;
#endif /* HPUX */
- CORBA::Long timedate;
+ time_t timedate;
ACE_UNUSED_ARG (padding);
//Make the RMI.
- timedate = client->current_time ();
+ timedate = static_cast <time_t> (client->current_time ());
// Print out value
// Use ACE_OS::ctime_r(), ctime() doesn't seem to work properly
// under 64-bit solaris.
ACE_TCHAR ascii_timedate[64] = "";
- ACE_OS::ctime_r (reinterpret_cast<const time_t *> (&timedate),
- ascii_timedate, 64);
+ ACE_OS::ctime_r (&timedate,
+ ascii_timedate, 64);
+
ACE_DEBUG ((LM_DEBUG,
"string time is %s\n",
ascii_timedate));