summaryrefslogtreecommitdiffstats
path: root/libc/include/signal.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-01-28 10:36:31 -0800
committerElliott Hughes <enh@google.com>2013-01-28 10:36:31 -0800
commit41b3179c9ef03ebb447cac7f5e8405dce399cb17 (patch)
treeb0fa19272b1a7bb1ca7fe17c35a7374b650913b6 /libc/include/signal.h
parent0a91b11d286446fe7849a6f537b4a21a52f63399 (diff)
downloadbionic-41b3179c9ef03ebb447cac7f5e8405dce399cb17.zip
bionic-41b3179c9ef03ebb447cac7f5e8405dce399cb17.tar.gz
bionic-41b3179c9ef03ebb447cac7f5e8405dce399cb17.tar.bz2
Unit tests for formatting code, fix %%.
Also fix <signal.h> and <stdio.h> so they don't cause compiler warnings. Change-Id: Ib1a746bf01de22d47dbd964de0e6af80a7c96303
Diffstat (limited to 'libc/include/signal.h')
-rw-r--r--libc/include/signal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/include/signal.h b/libc/include/signal.h
index 0770b0f..8c9b170 100644
--- a/libc/include/signal.h
+++ b/libc/include/signal.h
@@ -59,7 +59,7 @@ extern const char* const sys_signame[];
static __inline__ int sigismember(const sigset_t* set, int signum) {
int bit = signum - 1; // Signal numbers start at 1, but bit positions start at 0.
- if (set == NULL || bit < 0 || bit >= 8*sizeof(sigset_t)) {
+ if (set == NULL || bit < 0 || bit >= (int) (8*sizeof(sigset_t))) {
errno = EINVAL;
return -1;
}
@@ -69,7 +69,7 @@ static __inline__ int sigismember(const sigset_t* set, int signum) {
static __inline__ int sigaddset(sigset_t* set, int signum) {
int bit = signum - 1; // Signal numbers start at 1, but bit positions start at 0.
- if (set == NULL || bit < 0 || bit >= 8*sizeof(sigset_t)) {
+ if (set == NULL || bit < 0 || bit >= (int) (8*sizeof(sigset_t))) {
errno = EINVAL;
return -1;
}
@@ -80,7 +80,7 @@ static __inline__ int sigaddset(sigset_t* set, int signum) {
static __inline__ int sigdelset(sigset_t* set, int signum) {
int bit = signum - 1; // Signal numbers start at 1, but bit positions start at 0.
- if (set == NULL || bit < 0 || bit >= 8*sizeof(sigset_t)) {
+ if (set == NULL || bit < 0 || bit >= (int) (8*sizeof(sigset_t))) {
errno = EINVAL;
return -1;
}