]> Zhao Yanbai Git Server - minix.git/commitdiff
Suppressed some warnings in the WIFSIGNALED macro.
authorKees van Reeuwijk <reeuwijk@few.vu.nl>
Mon, 15 Mar 2010 18:33:29 +0000 (18:33 +0000)
committerKees van Reeuwijk <reeuwijk@few.vu.nl>
Mon, 15 Mar 2010 18:33:29 +0000 (18:33 +0000)
include/sys/wait.h

index 9b177874b6bcced5fd23b2db77ae8a4d81eb0710..bc6f596126357c94ae87a689f436835860ee4512 100644 (file)
@@ -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 */