aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2016-09-16 20:17:29 +0200
committerAndreas Blaesius <skate4life@gmx.de>2017-07-17 22:04:29 +0200
commit96c86859d559cf88e07135a0822296b8f09b93a8 (patch)
tree878c727db9684be3322d0cc707dd8e4e52d483e0
parentfb29665c7f931f8bf748970a3133786004f0fc12 (diff)
downloaddevice_samsung_espresso3g-96c86859d559cf88e07135a0822296b8f09b93a8.tar.gz
device_samsung_espresso3g-96c86859d559cf88e07135a0822296b8f09b93a8.tar.bz2
device_samsung_espresso3g-96c86859d559cf88e07135a0822296b8f09b93a8.zip
libsecril-shim: fix build with clang
Change-Id: I6a087cc7a13a0b3849dc2fd4ab9870d91a492a23
-rw-r--r--rilsrc/libsecril-shim/secril-shim.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/rilsrc/libsecril-shim/secril-shim.cpp b/rilsrc/libsecril-shim/secril-shim.cpp
index 71049bb..6e49116 100644
--- a/rilsrc/libsecril-shim/secril-shim.cpp
+++ b/rilsrc/libsecril-shim/secril-shim.cpp
@@ -90,7 +90,7 @@ static void onRequestShim(int request, void *data, size_t datalen, RIL_Token t)
origRilFunctions->onRequest(request, data, datalen, t);
}
-static void onCompleteRequestGetSimStatus(RIL_Token t, RIL_Errno e, void *response, size_t responselen) {
+static void onCompleteRequestGetSimStatus(RIL_Token t, RIL_Errno e, void *response) {
/* While at it, upgrade the response to RIL_CardStatus_v6 */
RIL_CardStatus_v5_samsung *p_cur = ((RIL_CardStatus_v5_samsung *) response);
RIL_CardStatus_v6 v6response;
@@ -143,7 +143,7 @@ static void onCompleteQueryAvailableNetworks(RIL_Token t, RIL_Errno e, void *res
free(newResponse);
}
-static void fixupSignalStrength(void *response, size_t responselen) {
+static void fixupSignalStrength(void *response) {
int gsmSignalStrength;
RIL_SignalStrength_v10 *p_cur = ((RIL_SignalStrength_v10 *) response);
@@ -181,7 +181,7 @@ static void onRequestCompleteShim(RIL_Token t, RIL_Errno e, void *response, size
case RIL_REQUEST_GET_SIM_STATUS:
/* Remove unused extra elements from RIL_AppStatus */
if (response != NULL && responselen == sizeof(RIL_CardStatus_v5_samsung)) {
- onCompleteRequestGetSimStatus(t, e, response, responselen);
+ onCompleteRequestGetSimStatus(t, e, response);
return;
}
break;
@@ -213,7 +213,7 @@ static void onRequestCompleteShim(RIL_Token t, RIL_Errno e, void *response, size
case RIL_REQUEST_SIGNAL_STRENGTH:
/* The Samsung RIL reports the signal strength in a strange way... */
if (response != NULL && responselen >= sizeof(RIL_SignalStrength_v5)) {
- fixupSignalStrength(response, responselen);
+ fixupSignalStrength(response);
rilEnv->OnRequestComplete(t, e, response, responselen);
return;
}
@@ -237,7 +237,7 @@ static void onUnsolicitedResponseShim(int unsolResponse, const void *data, size_
case RIL_UNSOL_SIGNAL_STRENGTH:
/* The Samsung RIL reports the signal strength in a strange way... */
if (data != NULL && datalen >= sizeof(RIL_SignalStrength_v5))
- fixupSignalStrength((void*) data, datalen);
+ fixupSignalStrength((void*) data);
break;
}