diff --git a/bpf/headers/include/bpf/BpfMap.h b/bpf/headers/include/bpf/BpfMap.h index c37531a620..efccdf714d 100644 --- a/bpf/headers/include/bpf/BpfMap.h +++ b/bpf/headers/include/bpf/BpfMap.h @@ -125,7 +125,7 @@ class BpfMapRO { return nextKey; } - Result readValue(const Key key) const { + Result readValue(const Key& key) const { Value value; if (findMapEntry(mMapFd, &key, &value)) { return ErrnoErrorf("BpfMap::readValue() failed");