From: John Light Date: Fri, 17 Jul 2015 14:39:15 +0000 (-0700) Subject: Eliminate warning about const mismatch in caipadapter (IOT-632) X-Git-Tag: 1.2.0+RC1~1379 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ce84982ea5cf8597d28516998be9a3823bd3b56;p=platform%2Fupstream%2Fiotivity.git Eliminate warning about const mismatch in caipadapter (IOT-632) Change-Id: I9c5afff53ded18b01467c0426c24876b219d7a34 Signed-off-by: John Light Reviewed-on: https://gerrit.iotivity.org/gerrit/1858 Tested-by: jenkins-iotivity Reviewed-by: Erich Keane --- diff --git a/resource/csdk/connectivity/inc/caadapterinterface.h b/resource/csdk/connectivity/inc/caadapterinterface.h index 739c198..0d21345 100644 --- a/resource/csdk/connectivity/inc/caadapterinterface.h +++ b/resource/csdk/connectivity/inc/caadapterinterface.h @@ -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 diff --git a/resource/csdk/connectivity/src/cainterfacecontroller.c b/resource/csdk/connectivity/src/cainterfacecontroller.c index 3441659..ddf689e 100644 --- a/resource/csdk/connectivity/src/cainterfacecontroller.c +++ b/resource/csdk/connectivity/src/cainterfacecontroller.c @@ -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"); diff --git a/resource/csdk/connectivity/src/camessagehandler.c b/resource/csdk/connectivity/src/camessagehandler.c index a7b4365..1d7ac57 100644 --- a/resource/csdk/connectivity/src/camessagehandler.c +++ b/resource/csdk/connectivity/src/camessagehandler.c @@ -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");