The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=2e01fc43f23f0e960dc08984ffaff2d1e6ad5cea
commit 2e01fc43f23f0e960dc08984ffaff2d1e6ad5cea Author: Faraz Vahedi <[email protected]> AuthorDate: 2024-10-08 18:09:39 +0000 Commit: Warner Losh <[email protected]> CommitDate: 2026-03-01 16:36:15 +0000 paste(1): Make small modifications to improve readability Signed-off-by: Faraz Vahedi <[email protected]> Reviewed by: imp, oshogbo Pull Request: https://github.com/freebsd/freebsd-src/pull/1443 --- usr.bin/paste/paste.c | 10 ++++------ 1 file 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)
