From 4b81f5ca920d716c08430583f5edb2c125f1f123 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 14 Jul 2013 19:18:21 -0400 Subject: 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. --- vmsjobs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vmsjobs.c') diff --git a/vmsjobs.c b/vmsjobs.c index 7e685c8..8d30157 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); } -- cgit v1.2.3