aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2026-03-01 16:56:37 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2026-03-01 17:03:13 +0000
commitffe7d45d295c553ed90ad3b5cc67111450063741 (patch)
tree3372973b09ca9f56ac5c5bd0eee4edfadf14db4b
parent4a4c88533712f98a6b8fa04acb319f26aecccc3c (diff)
from(1): style fixes
No functional changes.
-rw-r--r--usr.bin/from/from.c8
1 files 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)