X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=doc%2Fexamples%2Fwfstack%2Fcds_wfs_pop_all_blocking.c;h=794ced154008064c7eeb4285ff09225a16afcc06;hb=70469b43316ecc8d6053550504858ad8a8ef9b16;hp=766f07f1eb09226b1452dd9fc73d65f5f97a601a;hpb=bb641aa3882c0a345c98a75d4784b3b7ee6211ab;p=userspace-rcu.git diff --git a/doc/examples/wfstack/cds_wfs_pop_all_blocking.c b/doc/examples/wfstack/cds_wfs_pop_all_blocking.c index 766f07f..794ced1 100644 --- a/doc/examples/wfstack/cds_wfs_pop_all_blocking.c +++ b/doc/examples/wfstack/cds_wfs_pop_all_blocking.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 */ @@ -75,5 +75,6 @@ int main(int argc, char **argv) } printf("\n"); end: + cds_wfs_destroy(&mystack); return ret; }