Browse Source

opt: get rid of last remnant of getopt.

Testing code still using it.
Rusty Russell 14 years ago
parent
commit
f51a60f73a
1 changed files with 0 additions and 3 deletions
  1. 0 3
      ccan/opt/test/utils.c

+ 0 - 3
ccan/opt/test/utils.c

@@ -3,7 +3,6 @@
 #include <stdarg.h>
 #include <stdarg.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <ccan/opt/opt.h>
 #include <ccan/opt/opt.h>
-#include <getopt.h>
 #include <string.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdio.h>
 #include "utils.h"
 #include "utils.h"
@@ -77,8 +76,6 @@ bool parse_args(int *argc, char ***argv, ...)
 
 
 	*argv = a;
 	*argv = a;
 	allocated = true;
 	allocated = true;
-	/* Re-set before parsing. */
-	optind = 0;
 
 
 	return opt_parse(argc, *argv, save_err_output);
 	return opt_parse(argc, *argv, save_err_output);
 }
 }