diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2008-11-27 08:42:58 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2008-11-27 08:42:58 +0000 |
commit | 3c8d4fc09ba9d58aff04cccdaafce4ae05a1c609 (patch) | |
tree | aaef96495509ba0be2554ff85ae793bea4d9dccc /share/man/man9/style.9 | |
parent | 5c423e0640bcad0eb90d9c968658347228bc2818 (diff) | |
download | src-3c8d4fc09ba9d58aff04cccdaafce4ae05a1c609.tar.gz src-3c8d4fc09ba9d58aff04cccdaafce4ae05a1c609.zip |
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
Notes
Notes:
svn path=/head/; revision=185362
Diffstat (limited to 'share/man/man9/style.9')
-rw-r--r-- | share/man/man9/style.9 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index 5b1b4892af60..c7ccd25f9d17 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 |