cds_lfht_is_node_deleted parameter can be marked const
[urcu.git] / src / rculfhash.c
index 5b3c06b5a85ab6047cf133b3aea0ae1d0d955015..51972c8d1b318c618776a8d0b4b26e5373b9dbae 100644 (file)
@@ -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));
 }
@@ -2168,7 +2168,7 @@ static void cds_lfht_worker_init(struct urcu_workqueue *workqueue,
                urcu_die(errno);
        ret = sigdelset(&mask, SIGRCU);
        if (ret)
-               urcu_die(ret);
+               urcu_die(errno);
        ret = pthread_sigmask(SIG_SETMASK, &mask, NULL);
        if (ret)
                urcu_die(ret);
This page took 0.037007 seconds and 4 git commands to generate.