X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fexamples%2Fwfstack%2Fcds_wfs_pop.c;h=68b81b9bbdc4e98be213fae3c8422e8ae2c908a3;hb=70469b43316ecc8d6053550504858ad8a8ef9b16;hp=4cdec0a3b36b15078a6993805347e60071c86c56;hpb=95bba308b25b1d642d1ef96210bfb70384ab6de6;p=urcu.git diff --git a/doc/examples/wfstack/cds_wfs_pop.c b/doc/examples/wfstack/cds_wfs_pop.c index 4cdec0a..68b81b9 100644 --- a/doc/examples/wfstack/cds_wfs_pop.c +++ b/doc/examples/wfstack/cds_wfs_pop.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 */ @@ -71,5 +71,6 @@ int main(int argc, char **argv) } printf("\n"); end: + cds_wfs_destroy(&mystack); return ret; }