The branch main has been updated by oshogbo: URL: https://cgit.FreeBSD.org/src/commit/?id=ffe7d45d295c553ed90ad3b5cc67111450063741
commit ffe7d45d295c553ed90ad3b5cc67111450063741 Author: Mariusz Zaborski <[email protected]> AuthorDate: 2026-03-01 16:56:37 +0000 Commit: Mariusz Zaborski <[email protected]> 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)
