mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-21 15:54:00 +00:00
Change the errx() example. Error messages passed to the err(3)
functions shouldn't have the first word capitalized, and shouldn't have a period at the end. This is how most of our programs, and most (all?) of the 4.4BSD programs, are. In the past, we've even done sweeps to change things to comply to this.
This commit is contained in:
parent
ebb02791f2
commit
3b08168907
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80143
|
@ -474,7 +474,7 @@ don't roll your own!
|
|||
if ((four = malloc(sizeof(struct foo))) == NULL)
|
||||
err(1, (char *)NULL);
|
||||
if ((six = (int *)overflow()) == NULL)
|
||||
errx(1, "Number overflowed.");
|
||||
errx(1, "number overflowed");
|
||||
return (eight);
|
||||
}
|
||||
.Ed
|
||||
|
|
Loading…
Reference in a new issue