From: Andreas Schneider Date: Mon, 13 Apr 2015 20:54:49 +0000 (+0200) Subject: libril: Make data a const pointer in RIL_onUnsolicitedResponse() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=47b2d963573042077ddbc3acc875c8e77a9b643d;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git libril: Make data a const pointer in RIL_onUnsolicitedResponse() Change-Id: I5b57da9e2672ea8455481e55794c33759cb741db Signed-off-by: Andreas Schneider --- 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 {