Author: rwatson Date: Fri Oct 31 14:47:15 2008 New Revision: 184509 URL: http://svn.freebsd.org/changeset/base/184509
Log: 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 Modified: head/share/man/man9/style.9 Modified: head/share/man/man9/style.9 ============================================================================== --- head/share/man/man9/style.9 Fri Oct 31 14:40:21 2008 (r184508) +++ head/share/man/man9/style.9 Fri Oct 31 14:47:15 2008 (r184509) @@ -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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"