diff options
author | gonzo <gonzo@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-10 06:44:29 +0000 |
---|---|---|
committer | gonzo <gonzo@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-10 06:44:29 +0000 |
commit | d55f000499b3c08d8b368c44819864fdf6af6e0c (patch) | |
tree | 7ab6c778040ca5405622de6be426f45f08f4de24 /ace/Stream.cpp | |
parent | d53cf9dcbee9193da87ee08130cbd156ff6eb829 (diff) | |
download | ATCD-d55f000499b3c08d8b368c44819864fdf6af6e0c.tar.gz |
Support for Borland C++ 5.x as DLL
Diffstat (limited to 'ace/Stream.cpp')
-rw-r--r-- | ace/Stream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/Stream.cpp b/ace/Stream.cpp index bf8e7db06de..893f24cf373 100644 --- a/ace/Stream.cpp +++ b/ace/Stream.cpp @@ -345,7 +345,7 @@ ACE_Stream<ACE_SYNCH_USE>::control (ACE_IO_Cntl_Msg::ACE_IO_Cntl_Cmds cmd, ACE_TRACE ("ACE_Stream<ACE_SYNCH_USE>::control"); ACE_IO_Cntl_Msg ioc (cmd); - ACE_Message_Block *db = 0; + ACE_Message_Block *db; // Try to create a data block that contains the user-supplied data. ACE_NEW_RETURN (db, ACE_Message_Block (sizeof (int), @@ -371,7 +371,7 @@ ACE_Stream<ACE_SYNCH_USE>::control (ACE_IO_Cntl_Msg::ACE_IO_Cntl_Cmds cmd, return -1; } - int result = 0; + int result; if (this->stream_head_->writer ()->put (cb) == -1) result = -1; @@ -381,7 +381,7 @@ ACE_Stream<ACE_SYNCH_USE>::control (ACE_IO_Cntl_Msg::ACE_IO_Cntl_Cmds cmd, result = ((ACE_IO_Cntl_Msg *) cb->rd_ptr ())->rval (); // This will also release db if it's reference count == 0. - cb->release (); + cb->release (); return result; } |