mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 07:37:25 -04:00
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
This commit is contained in:
parent
5c423e0640
commit
3c8d4fc09b
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue