]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/test/run-iter.c
Merge Makefile rewrite into master
[ccan] / ccan / opt / test / run-iter.c
index a7cfb746218a31552e42d1a3342d382b156aec4d..d34fd6dc176a844f166d0fb32f9450f7bcd0a9f7 100644 (file)
@@ -1,4 +1,3 @@
-#define _GNU_SOURCE
 #include <ccan/tap/tap.h>
 #include <stdarg.h>
 #include <setjmp.h>
@@ -10,15 +9,8 @@
 #include <ccan/opt/helpers.c>
 #include <ccan/opt/parse.c>
 
-static void reset_options(void)
-{
-       free(opt_table);
-       opt_table = NULL;
-       opt_count = opt_num_short = opt_num_short_arg = opt_num_long = 0;
-}
-
 /* Test iterators. */
-int main(int argc, char *argv[])
+int main(void)
 {
        unsigned j, i, len = 0;
        const char *p;