summaryrefslogtreecommitdiff
path: root/vmsjobs.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-07-14 19:18:21 -0400
committerPaul Smith <psmith@gnu.org>2013-07-14 19:18:21 -0400
commit1d52c4bc7d6a47b02720a26f5e580fadea958fc7 (patch)
treecfb15f1ff1dc733ffbec1d92c1c19e2fe1000d7b /vmsjobs.c
parentf3edc3f0fe69f21cf2c18d5f7482c8ece6584acb (diff)
downloadmake-1d52c4bc7d6a47b02720a26f5e580fadea958fc7.tar.gz
Modify the update_status field in struct file to be an enum.
Makes the code a little clearer/cleaner, and solves a problem on systems where a char is unsigned by default.
Diffstat (limited to 'vmsjobs.c')
-rw-r--r--vmsjobs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmsjobs.c b/vmsjobs.c
index 7e685c8f..8d30157d 100644
--- a/vmsjobs.c
+++ b/vmsjobs.c
@@ -150,7 +150,7 @@ vmsHandleChildTerm(struct child *child)
/* The commands failed. Write an error message,
delete non-precious targets, and abort. */
child_error (c, c->cstatus, 0, 0, 0);
- c->file->update_status = 1;
+ c->file->update_status = us_failed;
delete_child_targets (c);
}
else
@@ -173,7 +173,7 @@ vmsHandleChildTerm(struct child *child)
break;
case cs_finished:
- if (c->file->update_status != 0) {
+ if (c->file->update_status != us_success) {
/* We failed to start the commands. */
delete_child_targets (c);
}