From e992d666e1c0d9911f279350270f9fae76bc7814 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 18 Jul 2003 07:18:54 +0000 Subject: [PATCH] (NOHUP_FOUND_BUT_CANNOT_INVOKE, NOHUP_FAILURE): Use an anonymous `enum', rather than #define. --- src/nohup.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/nohup.c b/src/nohup.c index a91f9756b5..eee2ca0999 100644 --- a/src/nohup.c +++ b/src/nohup.c @@ -34,12 +34,15 @@ #define AUTHORS "Jim Meyering" -/* This exit status indicates that `nohup' itself failed. */ -#define NOHUP_FAILURE 127 +/* Exit statuses. */ +enum + { + /* `nohup' found the specified command but failed to invoke it. */ + NOHUP_FOUND_BUT_CANNOT_INVOKE = 126, -/* This exit status indicates that `nohup' found the specified command - but failed to invoke it. */ -#define NOHUP_FOUND_BUT_CANNOT_INVOKE 126 + /* `nohup' itself failed, or did not find the specified command. */ + NOHUP_FAILURE = 127 + }; char *program_name; -- 2.47.2