diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-01-19 08:50:16 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-01-19 08:50:16 +0000 |
commit | cd6fdf01c01fad69511dcaac040bafc4e044e098 (patch) | |
tree | 37bad7e54e83676b57db510625c5c6a0fc16fbf5 /ACE/ace/Log_Record.inl | |
parent | b75e6e7faddb6070f290b109bd3ff28d703493ac (diff) | |
download | ATCD-cd6fdf01c01fad69511dcaac040bafc4e044e098.tar.gz |
Mon Jan 19 07:49:12 UTC 2009 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/INET_Addr.cpp:
* ace/Log_Record.inl:
Use ACE_HTONL macro
* ace/INET_Addr.inl:
Use ACE_NTOHS macro
Diffstat (limited to 'ACE/ace/Log_Record.inl')
-rw-r--r-- | ACE/ace/Log_Record.inl | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ACE/ace/Log_Record.inl b/ACE/ace/Log_Record.inl index aba217d93ef..1973a949746 100644 --- a/ACE/ace/Log_Record.inl +++ b/ACE/ace/Log_Record.inl @@ -20,17 +20,15 @@ ACE_INLINE void ACE_Log_Record::encode (void) { ACE_TRACE ("ACE_Log_Record::encode"); -#if !defined (ACE_LACKS_HTONL) - this->length_ = htonl (this->length_); - this->type_ = htonl (this->type_); + this->length_ = ACE_HTONL (this->length_); + this->type_ = ACE_HTONL (this->type_); // Make sure we don't enclose the sec() and usec() fields until // they've been normalized. // secs_ is commented out because it can be 64 bits. This method is // deprecated; use the CDR operations instead. - // this->secs_ = htonl (this->secs_); - this->usecs_ = htonl (this->usecs_); - this->pid_ = htonl (this->pid_); -#endif /* ACE_LACKS_HTONL */ + // this->secs_ = ACE_HTONL (this->secs_); + this->usecs_ = ACE_HTONL (this->usecs_); + this->pid_ = ACE_HTONL (this->pid_); } ACE_INLINE void |