From: Rusty Russell Date: Thu, 1 Dec 2011 06:09:50 +0000 (+1030) Subject: opt: get rid of last remnant of getopt. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=f51a60f73a22533ec38c12fc63f2837e355a0f88 opt: get rid of last remnant of getopt. Testing code still using it. --- diff --git a/ccan/opt/test/utils.c b/ccan/opt/test/utils.c index 21e0b727..7378d844 100644 --- a/ccan/opt/test/utils.c +++ b/ccan/opt/test/utils.c @@ -3,7 +3,6 @@ #include #include #include -#include #include #include #include "utils.h" @@ -77,8 +76,6 @@ bool parse_args(int *argc, char ***argv, ...) *argv = a; allocated = true; - /* Re-set before parsing. */ - optind = 0; return opt_parse(argc, *argv, save_err_output); }