diff options
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); |