aboutsummaryrefslogtreecommitdiff
path: root/cli/cli-example.c
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-09-13 01:37:55 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-09-13 01:37:55 +0300
commit312c20f2c868d8fdc014108152cc7782ae6ec90b (patch)
treeab21c2182b739cb91290cd0727b4d6b5c5364305 /cli/cli-example.c
parent8c73413201a720dd24451b468155069f954dfd35 (diff)
downloadc-wares-312c20f2c868d8fdc014108152cc7782ae6ec90b.tar.gz
c-wares-312c20f2c868d8fdc014108152cc7782ae6ec90b.zip
clang-format: align with spaces
Also format cli after the changes.
Diffstat (limited to 'cli/cli-example.c')
-rw-r--r--cli/cli-example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/cli-example.c b/cli/cli-example.c
index 941ddd6..7ed4562 100644
--- a/cli/cli-example.c
+++ b/cli/cli-example.c
@@ -28,7 +28,7 @@ int calc_distance(const struct cli_cmd *, const struct cli_ctx *)
return CLI_RC_OK;
}
-struct cli_opt *speed_opts[] = {&distance.opt, &time.opt, NULL};
+struct cli_opt *speed_opts[] = {&distance.opt, &time.opt, NULL};
struct cli_opt *distance_opts[] = {&speed.opt, &time.opt, NULL};
const struct cli_cmd my_cmds[] = {
@@ -57,8 +57,8 @@ struct cli my_cli = {
.header = "This is an example CLI program",
.footer = "\nCopyright (c) 2025 Yaroslav de la Peña Smirnov "
"<yps@yaroslavps.com>",
- .cmds = my_cmds,
- .opts = global_opts,
+ .cmds = my_cmds,
+ .opts = global_opts,
};
int main(int argc, char *argv[])