X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=doc%2Fexamples%2Fwfstack%2Fcds_wfs_push.c;h=42bc5ec4655ffdde18255748a7979f1e945eae9a;hp=a4727a9a86f9d3c245c8eebdc3e4419a6ddef153;hb=70469b43316ecc8d6053550504858ad8a8ef9b16;hpb=3709f861dd1bd40a493440749a67abe4730a9ee2 diff --git a/doc/examples/wfstack/cds_wfs_push.c b/doc/examples/wfstack/cds_wfs_push.c index a4727a9..42bc5ec 100644 --- a/doc/examples/wfstack/cds_wfs_push.c +++ b/doc/examples/wfstack/cds_wfs_push.c @@ -27,7 +27,7 @@ struct mynode { struct cds_wfs_node node; /* Chaining in stack */ }; -int main(int argc, char **argv) +int main(void) { int values[] = { -5, 42, 36, 24, }; struct cds_wfs_stack mystack; /* Stack */ @@ -68,5 +68,6 @@ int main(int argc, char **argv) } printf("\n"); end: + cds_wfs_destroy(&mystack); return ret; }