{
struct mynode *node =
caa_container_of(ht_node, struct mynode, node);
- const unsigned int *key = _key;
+ const int *key = _key;
return *key == node->value;
}
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 42, 36, 24, }; /* 42 is duplicated */
struct cds_lfht *ht; /* Hash table */