[PATCH v3 2/7] support: Fix getopt_long with CMDLINE_OPTIONS

Adhemerval Zanella adhemerval.zanella@linaro.org
Fri Sep 3 17:11:39 GMT 2021


---
 support/support_test_main.c | 1 -
 support/test-driver.h       | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/support_test_main.c b/support/support_test_main.c
index 07e3cdd173..ab1a475192 100644
--- a/support/support_test_main.c
+++ b/support/support_test_main.c
@@ -42,7 +42,6 @@
 static const struct option default_options[] =
 {
   TEST_DEFAULT_OPTIONS
-  { NULL, 0, NULL, 0 }
 };
 
 /* Show people how to run the program.  */
diff --git a/support/test-driver.h b/support/test-driver.h
index 8d4f38275d..3e54814a03 100644
--- a/support/test-driver.h
+++ b/support/test-driver.h
@@ -60,6 +60,7 @@ enum
   { "verbose", no_argument, NULL, 'v' },                \
   { "direct", no_argument, NULL, OPT_DIRECT },          \
   { "test-dir", required_argument, NULL, OPT_TESTDIR }, \
+  { NULL, 0, NULL, 0 }
 
 /* The directory the test should use for temporary files.  */
 extern const char *test_dir;
-- 
2.30.2



More information about the Libc-alpha mailing list