From a43c1d3d1e9940b4613f5ac3eb8ad1953c80f056 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 25 Feb 2024 15:03:26 -0500 Subject: [PATCH] Format. --- src/main.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/main.c b/src/main.c index 7a000a7e..e50857dd 100644 --- a/src/main.c +++ b/src/main.c @@ -67,16 +67,14 @@ const command_t k_commands[] = { static int _tf_command_test(const char* file, int argc, char* argv[]) { #if !defined(__ANDROID__) - tf_test_options_t test_options = - { + tf_test_options_t test_options = { .exe_path = file, }; bool show_usage = false; while (!show_usage) { - static struct option k_options[] = - { + static const struct option k_options[] = { { "tests", required_argument, NULL, 't' }, { "help", no_argument, NULL, 'h' }, { 0 }, @@ -130,8 +128,7 @@ static int _tf_command_import(const char* file, int argc, char* argv[]) while (!show_usage) { - static struct option k_options[] = - { + static const struct option k_options[] = { { "user", required_argument, NULL, 'u' }, { "db-path", required_argument, NULL, 'd' }, { "help", no_argument, NULL, 'h' }, @@ -195,8 +192,7 @@ static int _tf_command_export(const char* file, int argc, char* argv[]) while (!show_usage) { - static const struct option k_options[] = - { + static const struct option k_options[] = { { "user", required_argument, NULL, 'u' }, { "db-path", required_argument, NULL, 'd' }, { "help", no_argument, NULL, 'h' }, @@ -420,8 +416,7 @@ static int _tf_command_run(const char* file, int argc, char* argv[]) while (!show_usage) { - static const struct option k_options[] = - { + static const struct option k_options[] = { { "script", required_argument, NULL, 's' }, { "ssb-port", required_argument, NULL, 'b' }, { "http-port", required_argument, NULL, 'p' }, @@ -539,8 +534,7 @@ static int _tf_command_sandbox(const char* file, int argc, char* argv[]) while (!show_usage) { - static const struct option k_options[] = - { + static const struct option k_options[] = { { "help", no_argument, NULL, 'h' }, { 0 }, };