From: Mathieu Desnoyers Date: Thu, 13 Jun 2024 18:47:33 +0000 (-0400) Subject: rculfhash: make cds_lfht_iter_get_node argument const X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9fbbb7de38bf42ea2fcc9da5dcb220fcf3eca580;p=userspace-rcu.git rculfhash: make cds_lfht_iter_get_node argument const cds_lfht_iter_get_node doesn't modify its argument. Hence, it can be marked as `const`. Signed-off-by: Mathieu Desnoyers Change-Id: I69f6460928e90faa0a44e6c795a0eccb3f418738 --- diff --git a/include/urcu/rculfhash.h b/include/urcu/rculfhash.h index e0f4b35..69a251c 100644 --- a/include/urcu/rculfhash.h +++ b/include/urcu/rculfhash.h @@ -81,7 +81,7 @@ struct cds_lfht_alloc { }; static inline -struct cds_lfht_node *cds_lfht_iter_get_node(struct cds_lfht_iter *iter) +struct cds_lfht_node *cds_lfht_iter_get_node(const struct cds_lfht_iter *iter) { return iter->node; }