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