summaryrefslogtreecommitdiff
path: root/src/sys/wait/WEXITSTATUS.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/wait/WEXITSTATUS.c')
-rw-r--r--src/sys/wait/WEXITSTATUS.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sys/wait/WEXITSTATUS.c b/src/sys/wait/WEXITSTATUS.c
index f0fcafc6..4256e805 100644
--- a/src/sys/wait/WEXITSTATUS.c
+++ b/src/sys/wait/WEXITSTATUS.c
@@ -1,6 +1,5 @@
#include <sys/wait.h>
-
-#define WEXITSTATUS 1
+#define WEXITSTATUS(__stat_val) (__stat_val & 0xff)
/*
POSIX(1)
*/