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

Commit 73557dca authored by Ken Chen's avatar Ken Chen Committed by Automerger Merge Worker
Browse files

[Code Health] Fix misc-const-correctness build warning am: 50746ee1 am: 86fed968

parents 87d07735 86fed968
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line 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
        // wait until (1) timeout OR
        //            (2) cv is notified AND no pending request matching the |key|
        //            (2) cv is notified AND no pending request matching the |key|
        // (cv notifier should delete pending request before sending notification.)
        // (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) {
                                [netid, &cache, &key]() REQUIRES(cache_mutex) {
                                    // Must update cache as it could have been deleted
                                    // Must update cache as it could have been deleted
                                    cache = find_named_cache_locked(netid);
                                    cache = find_named_cache_locked(netid);