Fix -Walloc-size
[urcu.git] / doc / examples / urcu-flavors / mb.c
index 9c46f2f6e72ed7a7753d7a9a926d15434315f653..7069c248fef60a538d6f3623ccc87771e8d34d1a 100644 (file)
@@ -33,7 +33,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;
This page took 0.022157 seconds and 4 git commands to generate.