[PATCH 1/2] QPID: Fixed warnings introduced since proton 0.8


fquinn.ni@...
 

From: Frank Quinn <fquinn.ni@gmail.com>

---
mama/c_cpp/src/c/bridge/qpid/transport.c | 2 +-
mama/c_cpp/src/c/payload/qpidmsg/qpidcommon.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mama/c_cpp/src/c/bridge/qpid/transport.c b/mama/c_cpp/src/c/bridge/qpid/transport.c
index 8ca9550..aa84fd7 100644
--- a/mama/c_cpp/src/c/bridge/qpid/transport.c
+++ b/mama/c_cpp/src/c/bridge/qpid/transport.c
@@ -1433,7 +1433,7 @@ void* qpidBridgeMamaTransportImpl_dispatchThread (void* closure)
case QPID_MSG_SUB_REQUEST:
{
pn_data_t* data = pn_message_body (msgNode->mMsg);
- char* topic = NULL;
+ const char* topic = NULL;
const char* replyTo = NULL;

/* Move to the content which will contain the topic */
diff --git a/mama/c_cpp/src/c/payload/qpidmsg/qpidcommon.c b/mama/c_cpp/src/c/payload/qpidmsg/qpidcommon.c
index 8e91c2d..78d5123 100644
--- a/mama/c_cpp/src/c/payload/qpidmsg/qpidcommon.c
+++ b/mama/c_cpp/src/c/payload/qpidmsg/qpidcommon.c
@@ -210,7 +210,7 @@ qpidmsgPayloadInternal_elementToString (pn_data_t* payload,
case PN_BINARY:
{
mama_size_t i = 0;
- char* bytePos = NULL;
+ const char* bytePos = NULL;
pn_bytes_t bytes;

bytes = atom.u.as_bytes;
--
1.7.1

Join Openmama-dev@lists.openmama.org to automatically receive all group messages.