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

Commit 50746ee1 authored by Ken Chen's avatar Ken Chen
Browse files

[Code Health] Fix misc-const-correctness build warning

Fix lint on Ica3f7d3c5a262a797a6bdc99147c63d5a9108dff

Change-Id: I90dbc91d5c0437ac8556277ff79e39f8f936a10f
Test: TH
parent bd17a083
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1290,7 +1290,7 @@ ResolvCacheStatus resolv_cache_lookup(unsigned netid, span<const uint8_t> query,
        // wait until (1) timeout OR
        //            (2) cv is notified AND no pending request matching the |key|
        // (cv notifier should delete pending request before sending notification.)
        bool ret = cv.wait_for(lock, std::chrono::seconds(PENDING_REQUEST_TIMEOUT),
        const bool ret = cv.wait_for(lock, std::chrono::seconds(PENDING_REQUEST_TIMEOUT),
                                [netid, &cache, &key]() REQUIRES(cache_mutex) {
                                    // Must update cache as it could have been deleted
                                    cache = find_named_cache_locked(netid);