summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanket Padawe <sanketpadawe@google.com>2016-06-08 14:09:26 -0700
committerSanket Padawe <sanketpadawe@google.com>2016-06-08 14:09:26 -0700
commit626099ec9b53f7480d2f2ab5522eeb40c99de549 (patch)
treece8bb36176b9fafb906856c0055e88aada3abf37
parent22b45625aa72ef9311bf23cd785eccce9535efa5 (diff)
downloadplatform_hardware_ril-nougat-dev.tar.gz
platform_hardware_ril-nougat-dev.tar.bz2
platform_hardware_ril-nougat-dev.zip
Fix build failure which occurs after setting macro RILC_LOG.nougat-dev
Bug: 29214796 Change-Id: I5f74981a59344078f900ecf769cc962b1416d5fd
-rwxr-xr-xlibril/ril.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libril/ril.cpp b/libril/ril.cpp
index c283eaff..e1d30eae 100755
--- a/libril/ril.cpp
+++ b/libril/ril.cpp
@@ -3069,9 +3069,10 @@ static int responseRilSignalStrength(Parcel &p,
return RIL_ERRNO_INVALID_RESPONSE;
}
+ RIL_SignalStrength_v10 *p_cur;
if (s_callbacks.version <= LAST_IMPRECISE_RIL_VERSION) {
if (responselen >= sizeof (RIL_SignalStrength_v5)) {
- RIL_SignalStrength_v10 *p_cur = ((RIL_SignalStrength_v10 *) response);
+ p_cur = ((RIL_SignalStrength_v10 *) response);
responseRilSignalStrengthV5(p, p_cur);
@@ -3103,7 +3104,7 @@ static int responseRilSignalStrength(Parcel &p,
assert(0);
}
}
- RIL_SignalStrength_v10 *p_cur = ((RIL_SignalStrength_v10 *) response);
+ p_cur = ((RIL_SignalStrength_v10 *) response);
responseRilSignalStrengthV10(p, p_cur);
}
startResponse;