diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-03-18 18:08:52 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-03-18 18:08:52 +0000 |
commit | 41c8f67d2367cf8dd7bc5282bf71bb0805a92bea (patch) | |
tree | 2667e7e14d09506f3874cb3f8cb267906dc77164 /netsvcs | |
parent | 121aeeba0ebc2c576abfc35fea49a208cfe25e21 (diff) | |
download | ATCD-41c8f67d2367cf8dd7bc5282bf71bb0805a92bea.tar.gz |
* netsvcs/lib/Server_Logging_Handler_T.cpp (handle_logging_record):
Changed the argument of the ntohl() call to be a temporary
variable that had the same value as the original argument.
This is needed to get around what is apparently a bug in the
egcs-2.91.63 compiler.
Diffstat (limited to 'netsvcs')
-rw-r--r-- | netsvcs/lib/Server_Logging_Handler_T.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/netsvcs/lib/Server_Logging_Handler_T.cpp b/netsvcs/lib/Server_Logging_Handler_T.cpp index b5f44dbf83f..34bce80e46e 100644 --- a/netsvcs/lib/Server_Logging_Handler_T.cpp +++ b/netsvcs/lib/Server_Logging_Handler_T.cpp @@ -90,7 +90,12 @@ ACE_Server_Logging_Handler_T<ACE_PEER_STREAM_2, COUNTER, ACE_SYNCH_USE, LMR>::ha { ACE_Log_Record lp; - length = ntohl (length); + // This temporary variable is needed to prevent egcs 2.91.63 + // from producing improper code on the ntohl() call. + // (a compiler bug?) + ACE_INT32 temp_length = length; + + length = ntohl (temp_length); #if !defined (ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES) u_long count = ++this->request_count_; |