diff options
| author | Stephen D. Huston <shuston@apache.org> | 2010-08-20 13:45:52 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2010-08-20 13:45:52 +0000 |
| commit | 5692e8cfa142dca73560b40db814970479305dc6 (patch) | |
| tree | 2e78c46b2aa608aa1b043a73186192825d1177fa /qpid/cpp | |
| parent | 4522e6a49bab8d8256b9b16b20ba26bbf24354b7 (diff) | |
| download | qpid-python-5692e8cfa142dca73560b40db814970479305dc6.tar.gz | |
Make the count check a bit clearer and remove extraneous blank lines at end of file.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@987504 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/examples/messaging/drain.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qpid/cpp/examples/messaging/drain.cpp b/qpid/cpp/examples/messaging/drain.cpp index 4901fb303f..5c938e9742 100644 --- a/qpid/cpp/examples/messaging/drain.cpp +++ b/qpid/cpp/examples/messaging/drain.cpp @@ -102,7 +102,7 @@ int main(int argc, char** argv) } std::cout << "')" << std::endl; session.acknowledge(); - if (count && ++i == count) + if (count && (++i == count)) break; } receiver.close(); @@ -116,5 +116,3 @@ int main(int argc, char** argv) } return 1; } - - |
