Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Mar 2026 16:36:30 +0000
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Cc:        Faraz Vahedi <kfv@kfv.io>
Subject:   git: 2e01fc43f23f - main - paste(1): Make small modifications to improve readability
Message-ID:  <69a46b0e.3a995.5c297bcd@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=2e01fc43f23f0e960dc08984ffaff2d1e6ad5cea

commit 2e01fc43f23f0e960dc08984ffaff2d1e6ad5cea
Author:     Faraz Vahedi <kfv@kfv.io>
AuthorDate: 2024-10-08 18:09:39 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-03-01 16:36:15 +0000

    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
---
 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)


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69a46b0e.3a995.5c297bcd>