Eliminate warning about const mismatch in caipadapter (IOT-632)
authorJohn Light <john.j.light@intel.com>
Fri, 17 Jul 2015 14:39:15 +0000 (07:39 -0700)
committerErich Keane <erich.keane@intel.com>
Thu, 23 Jul 2015 20:55:43 +0000 (20:55 +0000)
Change-Id: I9c5afff53ded18b01467c0426c24876b219d7a34
Signed-off-by: John Light <john.j.light@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1858
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/connectivity/inc/caadapterinterface.h
resource/csdk/connectivity/src/cainterfacecontroller.c
resource/csdk/connectivity/src/camessagehandler.c

index 739c198..0d21345 100644 (file)
@@ -168,8 +168,8 @@ typedef void (*CARegisterConnectivityCallback)(CAConnectivityHandler_t handler,
  * @brief This will be used during the recive of network requests and response.
  * @see SendUnicastData(), SendMulticastData()
  */
-typedef void (*CANetworkPacketReceivedCallback)(const CAEndpoint_t *endPoint, void *data,
-        uint32_t dataLen);
+typedef void (*CANetworkPacketReceivedCallback)(const CAEndpoint_t *endPoint,
+                                            const void *data, uint32_t dataLen);
 
 /**
  * @brief This will be used to notify network changes to the connectivity common logic layer
index 3441659..ddf689e 100644 (file)
@@ -123,7 +123,7 @@ CAResult_t CASetAdapterRAInfo(const CARAInfo_t *caraInfo)
 }
 #endif
 
-static void CAReceivedPacketCallback(const CAEndpoint_t *endpoint, void *data, uint32_t dataLen)
+static void CAReceivedPacketCallback(const CAEndpoint_t *endpoint, const void *data, uint32_t dataLen)
 {
     OIC_LOG(DEBUG, TAG, "IN");
 
index a7b4365..1d7ac57 100644 (file)
@@ -579,7 +579,7 @@ static bool CADropSecondRequest(const CAEndpoint_t *endpoint, uint16_t messageId
     return ret;
 }
 
-static void CAReceivedPacketCallback(const CAEndpoint_t *remoteEndpoint, void *data, uint32_t dataLen)
+static void CAReceivedPacketCallback(const CAEndpoint_t *remoteEndpoint, const void *data, uint32_t dataLen)
 {
     OIC_LOG(DEBUG, TAG, "IN");
     VERIFY_NON_NULL_VOID(remoteEndpoint, TAG, "remoteEndpoint");