cleanup: explicitly mark unused parameters (-Wunused-parameter)
[urcu.git] / doc / examples / lfstack / cds_lfs_pop_all_blocking.c
index c2199d36181575177c75c1502b11643e4ab1f413..f6fcfb73221a62f92eecea30b7a94cc6832ed292 100644 (file)
@@ -27,7 +27,7 @@ struct mynode {
        struct cds_lfs_node node;       /* Chaining in stack */
 };
 
-int main(int argc, char **argv)
+int main(void)
 {
        int values[] = { -5, 42, 36, 24, };
        struct cds_lfs_stack mystack;   /* Stack */
@@ -75,5 +75,6 @@ int main(int argc, char **argv)
        }
        printf("\n");
 end:
+       cds_lfs_destroy(&mystack);
        return ret;
 }
This page took 0.023465 seconds and 4 git commands to generate.