From 47b2d963573042077ddbc3acc875c8e77a9b643d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 13 Apr 2015 22:54:49 +0200 Subject: [PATCH] libril: Make data a const pointer in RIL_onUnsolicitedResponse() Change-Id: I5b57da9e2672ea8455481e55794c33759cb741db Signed-off-by: Andreas Schneider --- ril/libril/ril.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ril/libril/ril.cpp b/ril/libril/ril.cpp index 07aaa58..66dd958 100644 --- a/ril/libril/ril.cpp +++ b/ril/libril/ril.cpp @@ -320,10 +320,10 @@ static bool isServiceTypeCfQuery(RIL_SsServiceType serType, RIL_SsRequestType re #ifdef RIL_SHLIB #if defined(ANDROID_MULTI_SIM) -extern "C" void RIL_onUnsolicitedResponse(int unsolResponse, void *data, +extern "C" void RIL_onUnsolicitedResponse(int unsolResponse, const void *data, size_t datalen, RIL_SOCKET_ID socket_id); #else -extern "C" void RIL_onUnsolicitedResponse(int unsolResponse, void *data, +extern "C" void RIL_onUnsolicitedResponse(int unsolResponse, const void *data, size_t datalen); #endif #endif @@ -4719,11 +4719,11 @@ processRadioState(RIL_RadioState newRadioState, RIL_SOCKET_ID socket_id) { #if defined(ANDROID_MULTI_SIM) extern "C" -void RIL_onUnsolicitedResponse(int unsolResponse, void *data, +void RIL_onUnsolicitedResponse(int unsolResponse, const void *data, size_t datalen, RIL_SOCKET_ID socket_id) #else extern "C" -void RIL_onUnsolicitedResponse(int unsolResponse, void *data, +void RIL_onUnsolicitedResponse(int unsolResponse, const void *data, size_t datalen) #endif { -- 2.20.1