diff options
author | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-04-23 18:12:56 +0000 |
---|---|---|
committer | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-04-23 18:12:56 +0000 |
commit | 823f73851450e8b83b689e1ee506353a23727aef (patch) | |
tree | 3bafa724035e34565ef7f1b880341c01de125d71 /TAO/orbsvcs/tests | |
parent | 2561fed51f24d36fb2e8b93ec5f65a197aedfd63 (diff) | |
download | ATCD-823f73851450e8b83b689e1ee506353a23727aef.tar.gz |
ChangeLogTag: Wed Apr 23 18:12:35 UTC 2008 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO/orbsvcs/tests')
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/sender.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/sender.cpp index b2bc0bd06ab..c6a79820963 100644 --- a/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/sender.cpp +++ b/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/sender.cpp @@ -206,12 +206,12 @@ Sender::pace_data (void) while (1) { // Read from the file into a message block. - int n = ACE_OS::fread (this->mb_.wr_ptr (), - 1, - this->mb_.size (), - this->input_file_); + size_t n = ACE_OS::fread (this->mb_.wr_ptr (), + 1, + this->mb_.size (), + this->input_file_); - if (n < 0) + if (n == 0 && ferror (this->input_file_)) ACE_ERROR_RETURN ((LM_ERROR, "Sender::pace_data fread failed\n"), -1); |