summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-11-27 08:42:58 +0000
committerrwatson <rwatson@FreeBSD.org>2008-11-27 08:42:58 +0000
commit272e95193bef3d1cacf8bf5d82b6f7bbe6d500a7 (patch)
treeaaef96495509ba0be2554ff85ae793bea4d9dccc /share
parent8656c82d08fb6dc18ba3fc90988f6a0070664469 (diff)
downloadFreeBSD-src-272e95193bef3d1cacf8bf5d82b6f7bbe6d500a7.zip
FreeBSD-src-272e95193bef3d1cacf8bf5d82b6f7bbe6d500a7.tar.gz
Revert r184509: don't encourage the use of sysexits.h with err() and
errx(),, as there seems to be a general preference against this practice. Suggested by: bde, des, jhb
Diffstat (limited to 'share')
-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 5b1b489..c7ccd25 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(EX_OSERR, NULL);
+ err(1, (char *)NULL);
if ((six = (int *)overflow()) == NULL)
- errx(EX_DATAERR, "number overflowed");
+ errx(1, "number overflowed");
return (eight);
}
.Ed
OpenPOWER on IntegriCloud