diff options
author | imp <imp@FreeBSD.org> | 2010-10-06 20:49:45 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-10-06 20:49:45 +0000 |
commit | f87a5af16e8875438c60529b4a74266394cdd902 (patch) | |
tree | 578767aca20417f944ed96249139a983bb24bc80 /usr.bin | |
parent | 96727cd5efa82346a3d5c2086fbecefae26e6ace (diff) | |
download | FreeBSD-src-f87a5af16e8875438c60529b4a74266394cdd902.zip FreeBSD-src-f87a5af16e8875438c60529b4a74266394cdd902.tar.gz |
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.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/make/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 3b091fd..295b3a6 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -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); |