From: Kees van Reeuwijk Date: Mon, 15 Mar 2010 18:33:29 +0000 (+0000) Subject: Suppressed some warnings in the WIFSIGNALED macro. X-Git-Tag: v3.1.7~235 X-Git-Url: http://zhaoyanbai.com/repos/dig.html?a=commitdiff_plain;h=d89e33fc925f824f5fc43e67e6b3512d9e586402;p=minix.git Suppressed some warnings in the WIFSIGNALED macro. --- diff --git a/include/sys/wait.h b/include/sys/wait.h index 9b177874b..bc6f59612 100644 --- a/include/sys/wait.h +++ b/include/sys/wait.h @@ -29,7 +29,7 @@ #define WIFEXITED(s) (_LOW(s) == 0) /* normal exit */ #define WEXITSTATUS(s) (_HIGH(s)) /* exit status */ #define WTERMSIG(s) (_LOW(s) & 0177) /* sig value */ -#define WIFSIGNALED(s) (((unsigned int)(s)-1 & 0xFFFF) < 0xFF) /* signaled */ +#define WIFSIGNALED(s) ((((unsigned int)(s)-1) & 0xFFFFU) < 0xFFU) /* signaled */ #define WIFSTOPPED(s) (_LOW(s) == 0177) /* stopped */ #define WSTOPSIG(s) (_HIGH(s) & 0377) /* stop signal */