summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/make/engine.c9
-rw-r--r--usr.bin/make/targ.c2
2 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/make/engine.c b/usr.bin/make/engine.c
index 72e4bb0aa44..67b55bd30ff 100644
--- a/usr.bin/make/engine.c
+++ b/usr.bin/make/engine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: engine.c,v 1.26 2009/08/16 09:47:06 espie Exp $ */
+/* $OpenBSD: engine.c,v 1.27 2009/08/16 09:49:22 espie Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
* Copyright (c) 1988, 1989 by Adam de Boor
@@ -706,7 +706,7 @@ setup_and_run_command(char *cmd, GNode *gn, int dont_fork)
}
return !status;
} else
- Fatal("error in wait: %d", stat);
+ Fatal("error in wait: %s", strerror(errno));
/*NOTREACHED*/
}
return 0;
@@ -795,9 +795,8 @@ run_gnode_parallel(GNode *gn)
case ERROR:
exit(1);
default:
- fprintf(stderr,
- "Could not run gnode, returned %d\n",
- gn->built_status);
+ fprintf(stderr, "Could not run gnode, returned %d\n",
+ gn->built_status);
exit(1);
}
}
diff --git a/usr.bin/make/targ.c b/usr.bin/make/targ.c
index e0e6085f766..f7f051e0c3f 100644
--- a/usr.bin/make/targ.c
+++ b/usr.bin/make/targ.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: targ.c,v 1.58 2009/05/12 09:24:16 espie Exp $ */
+/* $OpenBSD: targ.c,v 1.59 2009/08/16 09:49:22 espie Exp $ */
/* $NetBSD: targ.c,v 1.11 1997/02/20 16:51:50 christos Exp $ */
/*