summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-10-06 20:49:45 +0000
committerimp <imp@FreeBSD.org>2010-10-06 20:49:45 +0000
commitf87a5af16e8875438c60529b4a74266394cdd902 (patch)
tree578767aca20417f944ed96249139a983bb24bc80
parent96727cd5efa82346a3d5c2086fbecefae26e6ace (diff)
downloadFreeBSD-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.
-rw-r--r--usr.bin/make/main.c6
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);
OpenPOWER on IntegriCloud