On Thu, 27 Nov 2008, Robert Watson wrote:
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.
*snip*
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");
Out of curiosity, why not EXIT_FAILURE instead of 1, at least in situations where including stdlib.h is allowed? Is it because EXIT_FAILURE is only required to be non-zero and not necessarily 1? Sean -- [EMAIL PROTECTED] _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"