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/shared/ptyfwd.c | |
parent | d7a0f1f4f9910a1a2d290e31b2ba8cfa7126fbdd (diff) | |
download | systemd-d46b79bbe0e821b921a8f3874c5ea4b50bde9252.tar.gz |
tree-wide: drop if braces around single line expressions as well
Diffstat (limited to 'src/shared/ptyfwd.c')
-rw-r--r-- | src/shared/ptyfwd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shared/ptyfwd.c b/src/shared/ptyfwd.c index 305fd8a0f1..6bcdfff41a 100644 --- a/src/shared/ptyfwd.c +++ b/src/shared/ptyfwd.c @@ -473,15 +473,13 @@ int pty_forward_new( f->master = master; - if (ioctl(f->output_fd, TIOCGWINSZ, &ws) < 0) { + if (ioctl(f->output_fd, TIOCGWINSZ, &ws) < 0) /* If we can't get the resolution from the output fd, then use our internal, regular width/height, * i.e. something derived from $COLUMNS and $LINES if set. */ - ws = (struct winsize) { .ws_row = lines(), .ws_col = columns(), }; - } (void) ioctl(master, TIOCSWINSZ, &ws); |