Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65c86c08 authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Cast hidl_pointer<T> to void*.

hidl_pointer<T> can only allow one implicit conversion
operator, and native_handle_t* is the one that makes
most sense. Hence, this requires an explicit cast.

Bug: 32089785
Test: builds
Change-Id: Ie952ee2e4f0c20fa33f793403d51f3d550257310
parent 511cc493
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ Return<void> Bar::thisIsNew() {
}

Return<void> Bar::expectNullHandle(const native_handle_t* h, const Abc& xyz, expectNullHandle_cb _hidl_cb) {
    ALOGI("SERVER(Bar) h = %p, xyz.z = %p", h, xyz.z);
    ALOGI("SERVER(Bar) h = %p, xyz.z = %p", h, static_cast<void*>(xyz.z));
    _hidl_cb(h == nullptr, xyz.z == nullptr);
    return Void();
}