mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-15 10:28:09 +02:00
tools: run clang-format
Fixes: cd7ec93eda ("Let oeffis-demo-tool start ei-demo-client optionally")
Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/390>
This commit is contained in:
parent
cd7ec93eda
commit
fefbdd7b01
1 changed files with 7 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue