svn commit: r184509 - head/share/man/man9

Robert Watson rwatson at FreeBSD.org
Fri Oct 31 07:47:15 PDT 2008


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


More information about the svn-src-all mailing list