summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014-02-11 10:51:16 +0100
committerSzabolcs Nagy <nsz@port70.net>2014-02-11 10:51:16 +0100
commitaa6ce3d4e31e6e138a8fa5911d801ebc5ab47473 (patch)
treea8a9948658fff295d374ad2822d65cc4fc5c1d9d /include/sys
parentfdf5f1b13123883ac1d5e298e5f32c7ed43578ce (diff)
downloadmusl-aa6ce3d4e31e6e138a8fa5911d801ebc5ab47473.tar.gz
fix signed and unsigned comparision in macros in public headers
gcc -Wsign-compare warns about expanded macros that were defined in standard headers (before gcc 4.8) which can make builds fail that use -Werror. changed macros: WIFSIGNALED, __CPU_op_S
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/wait.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/wait.h b/include/sys/wait.h
index c794f5d3..50c5c709 100644
--- a/include/sys/wait.h
+++ b/include/sys/wait.h
@@ -50,7 +50,7 @@ pid_t wait4 (pid_t, int *, int, struct rusage *);
#define WCOREDUMP(s) ((s) & 0x80)
#define WIFEXITED(s) (!WTERMSIG(s))
#define WIFSTOPPED(s) ((short)((((s)&0xffff)*0x10001)>>8) > 0x7f00)
-#define WIFSIGNALED(s) (((s)&0xffff)-1 < 0xffu)
+#define WIFSIGNALED(s) (((s)&0xffff)-1U < 0xffu)
#define WIFCONTINUED(s) ((s) == 0xffff)
#ifdef __cplusplus