mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-29 08:08:37 +00:00
Use more portable errx instead of errc. The latter doesn't buy us
anyting anyway, since the error EAGAIN's error message doesn't add anything to the error strings that are there now.
This commit is contained in:
parent
dba44734eb
commit
2a13464829
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213493
@ -686,11 +686,9 @@ check_make_level(void)
|
||||
int level = (value == NULL) ? 0 : atoi(value);
|
||||
|
||||
if (level < 0) {
|
||||
errc(2, EAGAIN, "Invalid value for recursion level (%d).",
|
||||
level);
|
||||
errx(2, "Invalid value for recursion level (%d).", level);
|
||||
} else if (level > MKLVL_MAXVAL) {
|
||||
errc(2, EAGAIN, "Max recursion level (%d) exceeded.",
|
||||
MKLVL_MAXVAL);
|
||||
errx(2, "Max recursion level (%d) exceeded.", MKLVL_MAXVAL);
|
||||
} else {
|
||||
char new_value[32];
|
||||
sprintf(new_value, "%d", level + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user