X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fopt%2Ftest%2Frun-iter.c;h=e6b13dadea8d33b38d02e55ca99c20e0d956d1d8;hp=36e2c33c0a21ea365bb7ab4a46a5c03fe23d4949;hb=b989e06c093fb7a2befae277f684fa75b64b9ef5;hpb=9056c31b46452c92c7dd9c276664f514720a84c6 diff --git a/ccan/opt/test/run-iter.c b/ccan/opt/test/run-iter.c index 36e2c33c..e6b13dad 100644 --- a/ccan/opt/test/run-iter.c +++ b/ccan/opt/test/run-iter.c @@ -1,4 +1,3 @@ -#define _GNU_SOURCE #include #include #include @@ -10,17 +9,10 @@ #include #include -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[]) { - unsigned j, i, len; + unsigned j, i, len = 0; const char *p; plan_tests(37 * 2);