Fix arguments order
[urcu.git] / rculfhash.c
index 41b774adfdd3257f53e7acb548f147d43fe0dc10..bda3bd6e5e79b6cae109226430b8a23dc0e85f07 100644 (file)
@@ -1381,8 +1381,9 @@ struct cds_lfht *_cds_lfht_new(unsigned long init_size,
        return ht;
 }
 
-void cds_lfht_lookup(struct cds_lfht *ht, cds_lfht_match_fct match,
-               unsigned long hash, void *key, struct cds_lfht_iter *iter)
+void cds_lfht_lookup(struct cds_lfht *ht, unsigned long hash,
+               cds_lfht_match_fct match, void *key,
+               struct cds_lfht_iter *iter)
 {
        struct cds_lfht_node *node, *next, *bucket;
        unsigned long reverse_hash, size;
@@ -1498,9 +1499,9 @@ void cds_lfht_add(struct cds_lfht *ht, unsigned long hash,
 }
 
 struct cds_lfht_node *cds_lfht_add_unique(struct cds_lfht *ht,
+                               unsigned long hash,
                                cds_lfht_match_fct match,
                                void *key,
-                               unsigned long hash,
                                struct cds_lfht_node *node)
 {
        unsigned long size;
@@ -1515,9 +1516,9 @@ struct cds_lfht_node *cds_lfht_add_unique(struct cds_lfht *ht,
 }
 
 struct cds_lfht_node *cds_lfht_add_replace(struct cds_lfht *ht,
+                               unsigned long hash,
                                cds_lfht_match_fct match,
                                void *key,
-                               unsigned long hash,
                                struct cds_lfht_node *node)
 {
        unsigned long size;
This page took 0.02281 seconds and 4 git commands to generate.