From 8e5fa432f3f0e0c9cad389a5615952289350242c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 7 Apr 2015 19:14:05 +0200 Subject: [PATCH] libril: The data variable should be const Change-Id: I72a694e603c1ff18b09e3c3208cae8c5af937513 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 c1b25e0..9fda4ee 100644 --- a/ril/libril/ril.cpp +++ b/ril/libril/ril.cpp @@ -314,10 +314,10 @@ static RIL_RadioState processRadioState(RIL_RadioState newRadioState, RIL_SOCKET #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 @@ -4374,11 +4374,11 @@ processRadioState(RIL_RadioState newRadioState, RIL_SOCKET_ID socket_id __unused #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