summaryrefslogtreecommitdiffstats
path: root/renderscript
diff options
context:
space:
mode:
authorJae Shin <jaeshin@google.com>2017-10-20 17:28:41 +0900
committerJae Shin <jaeshin@google.com>2017-10-26 05:22:06 +0000
commit6a70875ba81a3683dbf537a97c1a152df315aeee (patch)
tree971aab148996a41f2387d97abab5c928e4614609 /renderscript
parent0f70905b7d58ce46a3cae7a7eb2f60cc92e7fb34 (diff)
downloadplatform_hardware_interfaces-6a70875ba81a3683dbf537a97c1a152df315aeee.tar.gz
platform_hardware_interfaces-6a70875ba81a3683dbf537a97c1a152df315aeee.tar.bz2
platform_hardware_interfaces-6a70875ba81a3683dbf537a97c1a152df315aeee.zip
Fix cpp style cast and variable name
Test: run vts -m VtsHalRenderscriptV1_0TargetTest Change-Id: I0c902aea13da7d4af2357ec42d8f712fda7269d4
Diffstat (limited to 'renderscript')
-rw-r--r--renderscript/1.0/default/Device.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/renderscript/1.0/default/Device.cpp b/renderscript/1.0/default/Device.cpp
index 4831a8b987..a2b950ded4 100644
--- a/renderscript/1.0/default/Device.cpp
+++ b/renderscript/1.0/default/Device.cpp
@@ -44,14 +44,14 @@ dispatchTable loadHAL() {
const char* filename = "libRS_internal.so";
// Try to load libRS_internal.so from the "rs" namespace directly.
typedef struct android_namespace_t* (*GetExportedNamespaceFnPtr)(const char*);
- GetExportedNamespaceFnPtr getExportedNamespace =
- (GetExportedNamespaceFnPtr)dlsym(RTLD_DEFAULT, "android_get_exported_namespace");
+ GetExportedNamespaceFnPtr getExportedNamespace = reinterpret_cast<GetExportedNamespaceFnPtr>(
+ dlsym(RTLD_DEFAULT, "android_get_exported_namespace"));
void* handle = nullptr;
if (getExportedNamespace != nullptr) {
- android_namespace_t* rs_namespace = getExportedNamespace("rs");
- if (rs_namespace != nullptr) {
+ android_namespace_t* rsNamespace = getExportedNamespace("rs");
+ if (rsNamespace != nullptr) {
const android_dlextinfo dlextinfo = {
- .flags = ANDROID_DLEXT_USE_NAMESPACE, .library_namespace = rs_namespace,
+ .flags = ANDROID_DLEXT_USE_NAMESPACE, .library_namespace = rsNamespace,
};
handle = android_dlopen_ext(filename, RTLD_LAZY | RTLD_LOCAL, &dlextinfo);
}