summaryrefslogtreecommitdiffstats
path: root/share/man/man9/style.9
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-10-31 14:47:15 +0000
committerrwatson <rwatson@FreeBSD.org>2008-10-31 14:47:15 +0000
commit06bee05bb5fd49d3c0cbd402386c2328bd14d700 (patch)
treeb1e7e67c43bcc978e02d8fa27ca0f5ad4a34d025 /share/man/man9/style.9
parent6f79887fc51e669512a2076565e23185b61d10f0 (diff)
downloadFreeBSD-src-06bee05bb5fd49d3c0cbd402386c2328bd14d700.zip
FreeBSD-src-06bee05bb5fd49d3c0cbd402386c2328bd14d700.tar.gz
In style(9) examples of err() and errx(), use sysexits(3) errors rather
than returning 1. Submitted by: Bruce Cran <bruce at cran dot org dot uk> MFC after: 3 days
Diffstat (limited to 'share/man/man9/style.9')
-rw-r--r--share/man/man9/style.94
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index c7ccd25..5b1b489 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -716,9 +716,9 @@ or
do not roll your own.
.Bd -literal
if ((four = malloc(sizeof(struct foo))) == NULL)
- err(1, (char *)NULL);
+ err(EX_OSERR, NULL);
if ((six = (int *)overflow()) == NULL)
- errx(1, "number overflowed");
+ errx(EX_DATAERR, "number overflowed");
return (eight);
}
.Ed
OpenPOWER on IntegriCloud