rculfhash: make cds_lfht_iter_get_node argument const
[userspace-rcu.git] / include / urcu / rculfhash.h
index 8b57cd87f82a5ce5893a785afaf691cdd95cb2b1..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;
 }
@@ -159,8 +159,8 @@ struct cds_lfht *_cds_lfht_new_with_alloc(unsigned long init_size,
                        unsigned long max_nr_buckets,
                        int flags,
                        const struct cds_lfht_mm_type *mm,
-                       const struct cds_lfht_alloc *alloc,
                        const struct rcu_flavor_struct *flavor,
+                       const struct cds_lfht_alloc *alloc,
                        pthread_attr_t *attr);
 
 /*
@@ -248,7 +248,7 @@ struct cds_lfht *cds_lfht_new_with_flavor_alloc(unsigned long init_size,
                        pthread_attr_t *attr)
 {
        return _cds_lfht_new_with_alloc(init_size, min_nr_alloc_buckets, max_nr_buckets,
-                       flags, NULL, alloc, flavor, attr);
+                       flags, NULL, flavor, alloc, attr);
 }
 
 
This page took 0.024103 seconds and 4 git commands to generate.