projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix -Walloc-size
[urcu.git]
/
doc
/
examples
/
urcu-flavors
/
mb.c
diff --git
a/doc/examples/urcu-flavors/mb.c
b/doc/examples/urcu-flavors/mb.c
index e103e4f91f55f1d69078733136366d05145194a7..675612b7886b9a083b81e660b5b204433a64d99f 100644
(file)
--- a/
doc/examples/urcu-flavors/mb.c
+++ b/
doc/examples/urcu-flavors/mb.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.024271 seconds
and
4
git commands to generate.