diff options
Diffstat (limited to 'ACE/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp')
-rw-r--r-- | ACE/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp b/ACE/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp index ed24bd697bb..95583fe5c16 100644 --- a/ACE/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp +++ b/ACE/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp @@ -66,7 +66,7 @@ Options::init (void) -1); // Copy the length into the beginning of the message. - ACE_UINT32 length = ntohl (this->message_len_); + ACE_UINT32 length = ACE_NTOHL (this->message_len_); ACE_OS::memcpy ((void *) this->message_buf_, (void *) &length, sizeof length); @@ -207,7 +207,7 @@ Options::shared_client_test (u_short port, remote_addr.get_host_name (), remote_addr.get_port_number ())); - ACE_INT32 len = htonl (this->message_len ()); + ACE_INT32 len = ACE_HTONL (this->message_len ()); // Allocate the transmit buffer. char *buf; @@ -354,7 +354,7 @@ Options::twoway_client_test (void *) ACE_Time_Value tv; timer.elapsed_time_incr (tv); - double real_time = tv.sec () * ACE_ONE_SECOND_IN_USECS + tv.usec (); + double real_time = (long) tv.sec () * ACE_ONE_SECOND_IN_USECS + tv.usec (); double messages_per_sec = iteration * double (ACE_ONE_SECOND_IN_USECS) / real_time; ACE_DEBUG ((LM_DEBUG, |