(NOHUP_FOUND_BUT_CANNOT_INVOKE, NOHUP_FAILURE):
authorJim Meyering <jim@meyering.net>
Fri, 18 Jul 2003 07:18:54 +0000 (07:18 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 18 Jul 2003 07:18:54 +0000 (07:18 +0000)
Use an anonymous `enum', rather than #define.

src/nohup.c

index a91f9756b52af57c802645a5066cb43d7d758c2b..eee2ca09995ad28ac6353489ebcba1301d44d7d5 100644 (file)
 
 #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;