Date: Thu, 27 Nov 2008 08:42:58 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185362 - head/share/man/man9 Message-ID: <200811270842.mAR8gwi3080974@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rwatson Date: Thu Nov 27 08:42:58 2008 New Revision: 185362 URL: http://svn.freebsd.org/changeset/base/185362 Log: 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 Modified: head/share/man/man9/style.9 Modified: head/share/man/man9/style.9 ============================================================================== --- head/share/man/man9/style.9 Thu Nov 27 06:21:04 2008 (r185361) +++ head/share/man/man9/style.9 Thu Nov 27 08:42:58 2008 (r185362) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811270842.mAR8gwi3080974>