diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-01-17 11:44:59 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-01-17 11:59:08 +0100 |
commit | 0d8930fd6d0416fbe1c14958a47c1d768e156aa2 (patch) | |
tree | 07690c4f5c7893174bb9e40f3f2565f11f6485c8 /src/stdio-bridge | |
parent | stdio-bridge: make the error more straightforward (diff) | |
download | systemd-0d8930fd6d0416fbe1c14958a47c1d768e156aa2.tar.xz systemd-0d8930fd6d0416fbe1c14958a47c1d768e156aa2.zip |
stdio-bridge: trim whitespace and braces
Diffstat (limited to 'src/stdio-bridge')
-rw-r--r-- | src/stdio-bridge/stdio-bridge.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/stdio-bridge/stdio-bridge.c b/src/stdio-bridge/stdio-bridge.c index 1a2099a8d1..33701e775e 100644 --- a/src/stdio-bridge/stdio-bridge.c +++ b/src/stdio-bridge/stdio-bridge.c @@ -26,7 +26,6 @@ static BusTransport arg_transport = BUS_TRANSPORT_LOCAL; static bool arg_user = false; static int help(void) { - printf("%s [OPTIONS...]\n\n" "Forward messages between two D-Bus busses via a pipe or socket.\n\n" " -h --help Show this help\n" @@ -41,7 +40,6 @@ static int help(void) { } static int parse_argv(int argc, char *argv[]) { - enum { ARG_VERSION = 0x100, ARG_MACHINE, @@ -64,7 +62,7 @@ static int parse_argv(int argc, char *argv[]) { assert(argc >= 0); assert(argv); - while ((c = getopt_long(argc, argv, "hp:M:", options, NULL)) >= 0) { + while ((c = getopt_long(argc, argv, "hp:M:", options, NULL)) >= 0) switch (c) { @@ -98,7 +96,6 @@ static int parse_argv(int argc, char *argv[]) { return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Unknown option code %c", c); } - } return 1; } |