X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=src%2Frculfhash.c;fp=src%2Frculfhash.c;h=51972c8d1b318c618776a8d0b4b26e5373b9dbae;hp=811d5156ccdebc06679758ea282c9df22060fd16;hb=afa5940dbe80a259cf8bc4a99403554a3c2c9e32;hpb=9fd30396a597942084b007f33cc7f2c279f746e9 diff --git a/src/rculfhash.c b/src/rculfhash.c index 811d515..51972c8 100644 --- a/src/rculfhash.c +++ b/src/rculfhash.c @@ -826,7 +826,7 @@ struct cds_lfht_node *clear_flag(struct cds_lfht_node *node) } static -int is_removed(struct cds_lfht_node *node) +int is_removed(const struct cds_lfht_node *node) { return ((unsigned long) node) & REMOVED_FLAG; } @@ -1830,7 +1830,7 @@ int cds_lfht_del(struct cds_lfht *ht, struct cds_lfht_node *node) return ret; } -int cds_lfht_is_node_deleted(struct cds_lfht_node *node) +int cds_lfht_is_node_deleted(const struct cds_lfht_node *node) { return is_removed(CMM_LOAD_SHARED(node->next)); }