summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1996-10-12 02:15:30 +0000
committersteve <steve@FreeBSD.org>1996-10-12 02:15:30 +0000
commit67bda81defabd8379767f7e5a6f0505f57e2777f (patch)
tree7c51c9d43c46e6a7ffa9b5ed65c7977c4f1136b8 /usr.bin/make
parent4485d0a8784141af29c4d5f5d17536f8bb4cf360 (diff)
downloadFreeBSD-src-67bda81defabd8379767f7e5a6f0505f57e2777f.zip
FreeBSD-src-67bda81defabd8379767f7e5a6f0505f57e2777f.tar.gz
Remove extraneous comment, fix second-level tabs (one
tab and four spaces), and return error message in *err instead of calling Parse_Error. Suggested by: Bruce Evans <bde@zeta.org.au>
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/main.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index 474bd1b..a358a0e 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: main.c,v 1.12 1996/10/08 04:06:00 steve Exp $
+ * $Id: main.c,v 1.13 1996/10/11 03:55:29 steve Exp $
*/
#ifndef lint
@@ -965,14 +965,8 @@ Cmd_Exec(cmd, err)
while(((pid = wait(&status)) != cpid) && (pid >= 0))
continue;
- if (cc == -1) {
- /*
- * Couldn't read all of the child's output -- tell the user
- * but still use whatever we read. Null output isn't an
- * error unless there was an error reading it.
- */
- Parse_Error(PARSE_WARNING, "Couldn't read shell's output");
- }
+ if (cc == -1)
+ *err = "Error reading shell's output for \"%s\"";
res = (char *)Buf_GetAll (buf, &cc);
Buf_Destroy (buf, FALSE);
OpenPOWER on IntegriCloud