diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2020-10-09 15:06:34 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2020-10-09 15:11:55 +0200 |
commit | d46b79bbe0e821b921a8f3874c5ea4b50bde9252 (patch) | |
tree | 55a773a28d00b05ec82ccb9998c265c6996aa111 /src/run/run.c | |
parent | d7a0f1f4f9910a1a2d290e31b2ba8cfa7126fbdd (diff) | |
download | systemd-d46b79bbe0e821b921a8f3874c5ea4b50bde9252.tar.gz |
tree-wide: drop if braces around single line expressions as well
Diffstat (limited to 'src/run/run.c')
-rw-r--r-- | src/run/run.c | 3 |
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; |