Fix -Walloc-size
[userspace-rcu.git] / doc / examples / urcu-flavors / bp.c
index 1875a860b781a9f91ff80beb25d302f6a6dd44fb..b938b08f7a51e4da3247045e677b7ff5baacbb49 100644 (file)
@@ -46,7 +46,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;
@@ -54,7 +54,7 @@ int add_node(uint64_t v)
        return 0;
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
        uint64_t values[] = { 42, 36, 24, };
        unsigned int i;
This page took 0.022954 seconds and 4 git commands to generate.