summaryrefslogtreecommitdiffstats
path: root/src/stdio-bridge/stdio-bridge.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-03-19 13:04:21 +0100
committerLennart Poettering <lennart@poettering.net>2019-03-19 15:29:44 +0100
commitd1ded478ee3db6e98491df6e2442efc7f628e76d (patch)
tree19edb7498d004ae31c49cdcc0c666902c6115950 /src/stdio-bridge/stdio-bridge.c
parentstdio-bridge: use SYNTHETIC_ERRNO() where appropriate (diff)
downloadsystemd-d1ded478ee3db6e98491df6e2442efc7f628e76d.tar.xz
systemd-d1ded478ee3db6e98491df6e2442efc7f628e76d.zip
stdio-bridge: slightly optimize formatting of structure
Diffstat (limited to 'src/stdio-bridge/stdio-bridge.c')
-rw-r--r--src/stdio-bridge/stdio-bridge.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/stdio-bridge/stdio-bridge.c b/src/stdio-bridge/stdio-bridge.c
index 16f4bdb809..52b9ce4555 100644
--- a/src/stdio-bridge/stdio-bridge.c
+++ b/src/stdio-bridge/stdio-bridge.c
@@ -240,9 +240,10 @@ static int run(int argc, char *argv[]) {
{
struct pollfd p[3] = {
- {.fd = fd, .events = events_a, },
- {.fd = STDIN_FILENO, .events = events_b & POLLIN, },
- {.fd = STDOUT_FILENO, .events = events_b & POLLOUT, }};
+ {.fd = fd, .events = events_a },
+ {.fd = STDIN_FILENO, .events = events_b & POLLIN },
+ {.fd = STDOUT_FILENO, .events = events_b & POLLOUT },
+ };
r = ppoll(p, ELEMENTSOF(p), ts, NULL);
}