projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: explicitly mark unused parameters (-Wunused-parameter)
[userspace-rcu.git]
/
doc
/
examples
/
rculfhash
/
cds_lfht_lookup.c
diff --git
a/doc/examples/rculfhash/cds_lfht_lookup.c
b/doc/examples/rculfhash/cds_lfht_lookup.c
index 053e6dd9079a0fd090a8c25704d79e58b82bd72b..8eeacf70bbfadd1383a58b1a5732ee3105131ac0 100644
(file)
--- a/
doc/examples/rculfhash/cds_lfht_lookup.c
+++ b/
doc/examples/rculfhash/cds_lfht_lookup.c
@@
-37,12
+37,12
@@
int match(struct cds_lfht_node *ht_node, const void *_key)
{
struct mynode *node =
caa_container_of(ht_node, struct mynode, node);
{
struct mynode *node =
caa_container_of(ht_node, struct mynode, node);
- const
unsigned
int *key = _key;
+ const int *key = _key;
return *key == node->value;
}
return *key == node->value;
}
-int main(
int argc, char **argv
)
+int main(
void
)
{
int values[] = { -5, 42, 42, 36, 24, }; /* 42 is duplicated */
int lookup_values[] = { 42, 200, 36, };
{
int values[] = { -5, 42, 42, 36, 24, }; /* 42 is duplicated */
int lookup_values[] = { 42, 200, 36, };
This page took
0.022616 seconds
and
4
git commands to generate.