From 6cf07034d5f45d3cbab6ad865916c63e8466b123 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Wed, 12 Aug 2015 23:38:57 +0200 Subject: [PATCH] Fix missing parenthesizes in macros. --- kernel/include/sortix/__/wait.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/include/sortix/__/wait.h b/kernel/include/sortix/__/wait.h index 16c90c8f..75081d6c 100644 --- a/kernel/include/sortix/__/wait.h +++ b/kernel/include/sortix/__/wait.h @@ -34,9 +34,9 @@ __BEGIN_DECLS #define __WNATURE_STOPPED 2 #define __WNATURE_CONTINUED 3 -#define __WEXITSTATUS(status) ((status >> 8) & 0xFF) -#define __WTERMSIG(status) ((status >> 0) & 0x7F) -#define __WNATURE(status) ((status >> 16) & 0xFF) +#define __WEXITSTATUS(status) (((status) >> 8) & 0xFF) +#define __WTERMSIG(status) (((status) >> 0) & 0x7F) +#define __WNATURE(status) (((status) >> 16) & 0xFF) #define __WIFEXITED(status) (__WNATURE(status) == __WNATURE_EXITED) #define __WIFSIGNALED(status) (__WNATURE(status) == __WNATURE_SIGNALED)