rculfhash: make cds_lfht_iter_get_node argument const
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 Jun 2024 18:47:33 +0000 (14:47 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 Jun 2024 18:47:33 +0000 (14:47 -0400)
cds_lfht_iter_get_node doesn't modify its argument. Hence, it can be
marked as `const`.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I69f6460928e90faa0a44e6c795a0eccb3f418738

include/urcu/rculfhash.h

index e0f4b351fc9b027a32ecee2c1e8a958b3ce21b2f..69a251c29c5e594ed8d2ea38572b400693ec78a6 100644 (file)
@@ -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;
 }
This page took 0.025829 seconds and 4 git commands to generate.