diff options
| author | Faraz Vahedi <kfv@kfv.io> | 2024-10-08 18:09:39 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2026-03-01 16:36:15 +0000 |
| commit | 2e01fc43f23f0e960dc08984ffaff2d1e6ad5cea (patch) | |
| tree | cef8ab1e6b8f5ff890c08f5d759018073dcc0c33 | |
| parent | 4ba5c9d015f02eb1fda30de26c23690dd41731fc (diff) | |
paste(1): Make small modifications to improve readability
Signed-off-by: Faraz Vahedi <kfv@kfv.io>
Reviewed by: imp, oshogbo
Pull Request: https://github.com/freebsd/freebsd-src/pull/1443
| -rw-r--r-- | usr.bin/paste/paste.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c index fa8be54ebe53..39e2577200bb 100644 --- a/usr.bin/paste/paste.c +++ b/usr.bin/paste/paste.c @@ -99,10 +99,8 @@ main(int argc, char *argv[]) delim = tab; } - if (seq) - rval = sequential(argv); - else - rval = parallel(argv); + rval = seq ? sequential(argv) : parallel(argv); + exit(rval); } @@ -118,7 +116,6 @@ static STAILQ_HEAD(head, _list) lh; static int parallel(char **argv) { - struct head lh; LIST *lp; int cnt; wint_t ich; @@ -244,7 +241,8 @@ tr(wchar_t *arg) default: *arg = ch; break; - } else + } + else *arg = ch; if (!cnt) |
