From 5692e8cfa142dca73560b40db814970479305dc6 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Fri, 20 Aug 2010 13:45:52 +0000 Subject: 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 --- qpid/cpp/examples/messaging/drain.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qpid/cpp') 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; } - - -- cgit v1.2.1