diff options
| author | Gordon Sim <gsim@apache.org> | 2008-11-13 18:48:43 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-11-13 18:48:43 +0000 |
| commit | 7fbb0e83cc1a44b14211dcd4e42d3ebdeba2f64e (patch) | |
| tree | f093090ab9827b853e323ef441135370d145ee0a /cpp/examples/fanout | |
| parent | a9a2e91cdba870df5ae91e8f9c6734a947a97841 (diff) | |
| download | qpid-python-7fbb0e83cc1a44b14211dcd4e42d3ebdeba2f64e.tar.gz | |
Minor cleanup edits to examples (from jrobie@redhat.com)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@713785 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/fanout')
| -rw-r--r-- | cpp/examples/fanout/fanout_producer.cpp | 1 | ||||
| -rw-r--r-- | cpp/examples/fanout/listener.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/cpp/examples/fanout/fanout_producer.cpp b/cpp/examples/fanout/fanout_producer.cpp index 18338717b9..fb16f7e8b1 100644 --- a/cpp/examples/fanout/fanout_producer.cpp +++ b/cpp/examples/fanout/fanout_producer.cpp @@ -65,7 +65,6 @@ int main(int argc, char** argv) { int port = argc>2 ? atoi(argv[2]) : 5672; Connection connection; - Message message; try { connection.open(host, port); Session session = connection.newSession(); diff --git a/cpp/examples/fanout/listener.cpp b/cpp/examples/fanout/listener.cpp index dd9bf3c7ba..b6050ef728 100644 --- a/cpp/examples/fanout/listener.cpp +++ b/cpp/examples/fanout/listener.cpp @@ -45,6 +45,7 @@ #include <qpid/client/Connection.h> #include <qpid/client/Session.h> #include <qpid/client/Message.h> +#include <qpid/client/MessageListener.h> #include <qpid/client/SubscriptionManager.h> #include <unistd.h> @@ -80,7 +81,6 @@ int main(int argc, char** argv) { int port = argc>2 ? atoi(argv[2]) : 5672; Connection connection; - Message msg; try { connection.open(host, port); Session session = connection.newSession(); |
