Fix -Walloc-size
[urcu.git] / doc / examples / urcu-flavors / membarrier.c
index f9523d5d16dbea16021f86a4b92e170abc71ad52..fdf003ef25bfc54febfe72fc2639f1f395ba54e3 100644 (file)
@@ -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.023738 seconds and 4 git commands to generate.