From fefbdd7b01ca295584cc829bfe1b43cced32fbf3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 13 May 2026 10:05:20 +1000 Subject: [PATCH] tools: run clang-format Fixes: cd7ec93edade ("Let oeffis-demo-tool start ei-demo-client optionally") Part-of: --- tools/oeffis-demo-tool.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/oeffis-demo-tool.c b/tools/oeffis-demo-tool.c index 8242761..5e2754e 100644 --- a/tools/oeffis-demo-tool.c +++ b/tools/oeffis-demo-tool.c @@ -82,7 +82,9 @@ start_demo_client(int fd) _cleanup_free_ char *fdstr = xaprintf("%d", fd); execl(MESON_BUILDDIR "/ei-demo-client", "ei-demo-client", - "--socketfd", fdstr, NULL); + "--socketfd", + fdstr, + NULL); fprintf(stderr, "Failed to fork: %m\n"); exit(1); } @@ -116,9 +118,9 @@ main(int argc, char **argv) OPT_CLIENT, }; static struct option long_opts[] = { - {"client", required_argument, 0, OPT_CLIENT}, - {"help", no_argument, 0, 'h'}, - {.name = NULL}, + { "client", required_argument, 0, OPT_CLIENT }, + { "help", no_argument, 0, 'h' }, + { .name = NULL }, }; int optind = 0; @@ -126,7 +128,7 @@ main(int argc, char **argv) if (c == -1) break; - switch(c) { + switch (c) { case 'h': usage(stdout, argv[0]); return EXIT_SUCCESS;