projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix -Walloc-size
[userspace-rcu.git]
/
doc
/
examples
/
urcu-flavors
/
membarrier.c
diff --git
a/doc/examples/urcu-flavors/membarrier.c
b/doc/examples/urcu-flavors/membarrier.c
index f9523d5d16dbea16021f86a4b92e170abc71ad52..fdf003ef25bfc54febfe72fc2639f1f395ba54e3 100644
(file)
--- a/
doc/examples/urcu-flavors/membarrier.c
+++ b/
doc/examples/urcu-flavors/membarrier.c
@@
-47,7
+47,7
@@
int add_node(uint64_t v)
{
struct mynode *node;
- node = calloc(
sizeof(*node), 1
);
+ node = calloc(
1, sizeof(*node)
);
if (!node)
return -1;
node->value = v;
@@
-63,7
+63,7
@@
void rcu_free_node(struct rcu_head *rh)
free(node);
}
-int main(
int argc, char **argv
)
+int main(
void
)
{
uint64_t values[] = { 42, 36, 24, };
unsigned int i;
This page took
0.022801 seconds
and
4
git commands to generate.