Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Mar 2026 17:06:29 +0000
From:      Mariusz Zaborski <oshogbo@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ffe7d45d295c - main - from(1): style fixes
Message-ID:  <69a47215.3da88.34c22ad3@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by oshogbo:

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

commit ffe7d45d295c553ed90ad3b5cc67111450063741
Author:     Mariusz Zaborski <oshogbo@FreeBSD.org>
AuthorDate: 2026-03-01 16:56:37 +0000
Commit:     Mariusz Zaborski <oshogbo@FreeBSD.org>
CommitDate: 2026-03-01 17:03:13 +0000

    from(1): style fixes
    
    No functional changes.
---
 usr.bin/from/from.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/usr.bin/from/from.c b/usr.bin/from/from.c
index da9c6a7583ca..63eb69daf36a 100644
--- a/usr.bin/from/from.c
+++ b/usr.bin/from/from.c
@@ -99,7 +99,7 @@ main(int argc, char **argv)
 	/* read from stdin */
 	if (strcmp(file, "-") == 0) {
 		mbox = stdin;
-	} 
+	}
 	else if ((mbox = fopen(file, "r")) == NULL) {
 		errx(EXIT_FAILURE, "can't read %s", file);
 	}
@@ -122,7 +122,7 @@ main(int argc, char **argv)
 	}
 	if (count != -1)
 		printf("There %s %d message%s in your incoming mailbox.\n",
-		    count == 1 ? "is" : "are", count, count == 1 ? "" : "s"); 
+		    count == 1 ? "is" : "are", count, count == 1 ? "" : "s");
 	fclose(mbox);
 	exit(EXIT_SUCCESS);
 }
@@ -142,14 +142,14 @@ match(const char *line, const char *sender)
 
 	for (first = *sender++;;) {
 		if (isspace(ch = *line))
-			return(0);
+			return (0);
 		++line;
 		ch = tolower(ch);
 		if (ch != first)
 			continue;
 		for (p = sender, t = line;;) {
 			if (!(pch = *p++))
-				return(1);
+				return (1);
 			ch = tolower(*t);
 			t++;
 			if (ch != pch)


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69a47215.3da88.34c22ad3>