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

Message ID 20210903171144.952737-3-adhemerval.zanella@linaro.org
State Superseded
Headers
Series Use introsort for qsort |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

Adhemerval Zanella Netto Sept. 3, 2021, 5:11 p.m. UTC
  ---
 support/support_test_main.c | 1 -
 support/test-driver.h       | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
  

Patch

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;