X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fopt%2Ftest%2Futils.c;h=21e0b727ebd6cab4762526dc5a21a11a3eb5f072;hp=9544fa77bd3493382c07e72f77f770d09b3d4cc7;hb=2d6e39ce1994c9537caf9a711b69a2c61f1ec35d;hpb=6fa62e5ae1e29646aa718e99020fdf2efee74373 diff --git a/ccan/opt/test/utils.c b/ccan/opt/test/utils.c index 9544fa77..21e0b727 100644 --- a/ccan/opt/test/utils.c +++ b/ccan/opt/test/utils.c @@ -49,6 +49,13 @@ void save_err_output(const char *fmt, ...) err_output = p; } +void reset_options(void) +{ + opt_free_table(); + free(err_output); + err_output = NULL; +} + static bool allocated = false; bool parse_args(int *argc, char ***argv, ...)