summaryrefslogtreecommitdiff
path: root/src/shared/exit-status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/exit-status.c')
-rw-r--r--src/shared/exit-status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/exit-status.c b/src/shared/exit-status.c
index 44b1c9b749..3704f5d481 100644
--- a/src/shared/exit-status.c
+++ b/src/shared/exit-status.c
@@ -99,7 +99,7 @@ const ExitStatusMapping exit_status_mappings[256] = {
const char* exit_status_to_string(int code, ExitStatusClass class) {
if (code < 0 || (size_t) code >= ELEMENTSOF(exit_status_mappings))
return NULL;
- return FLAGS_SET(exit_status_mappings[code].class, class) ? exit_status_mappings[code].name : NULL;
+ return class & exit_status_mappings[code].class ? exit_status_mappings[code].name : NULL;
}
const char* exit_status_class(int code) {