summaryrefslogtreecommitdiff
path: root/src/run
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2020-10-09 15:06:34 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2020-10-09 15:11:55 +0200
commitd46b79bbe0e821b921a8f3874c5ea4b50bde9252 (patch)
tree55a773a28d00b05ec82ccb9998c265c6996aa111 /src/run
parentd7a0f1f4f9910a1a2d290e31b2ba8cfa7126fbdd (diff)
downloadsystemd-d46b79bbe0e821b921a8f3874c5ea4b50bde9252.tar.gz
tree-wide: drop if braces around single line expressions as well
Diffstat (limited to 'src/run')
-rw-r--r--src/run/run.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/run/run.c b/src/run/run.c
index 9ea3de4b17..4179624313 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -538,14 +538,13 @@ static int parse_argv(int argc, char *argv[]) {
arg_aggressive_gc = true;
}
- if (arg_stdio == ARG_STDIO_AUTO) {
+ if (arg_stdio == ARG_STDIO_AUTO)
/* If we both --pty and --pipe are specified we'll automatically pick --pty if we are connected fully
* to a TTY and pick direct fd passing otherwise. This way, we automatically adapt to usage in a shell
* pipeline, but we are neatly interactive with tty-level isolation otherwise. */
arg_stdio = isatty(STDIN_FILENO) && isatty(STDOUT_FILENO) && isatty(STDERR_FILENO) ?
ARG_STDIO_PTY :
ARG_STDIO_DIRECT;
- }
if (argc > optind) {
char **l;