diff options
author | Thomas Schwinge <thomas@schwinge.name> | 2011-09-07 19:38:22 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@schwinge.name> | 2011-09-07 19:38:22 +0200 |
commit | 3def2cde1dc7e071976a174aa43ca076ae356a13 (patch) | |
tree | c113937092c106f1e4d7e8753b6f434b4f4f4578 /tests | |
parent | a86a4a149b67a83d5c08238d0b802d372332bfba (diff) |
Tiny build and GCC warning fixes.
* pthread/cthreads-compat.c: #include <stddef.h> for NULL.
* pthread/pt-exit.c (pthread_exit): Remove stray need_dealloc variable.
* sysdeps/generic/pt-attr-getschedparam.c: #include <string.h> for memcpy.
* sysdeps/mach/hurd/ia32/pt-setup.c (stack_setup): Apply some more typecasting.
* tests/test-1.c: #include <assert.h>.
* tests/test-6.c: Likewise.
* tests/test-7.c: Likewise.
* tests/test-16.c (handler): Take parameters for sa_handler, not sa_sigaction.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-1.c | 1 | ||||
-rw-r--r-- | tests/test-16.c | 2 | ||||
-rw-r--r-- | tests/test-6.c | 1 | ||||
-rw-r--r-- | tests/test-7.c | 1 |
4 files changed, 4 insertions, 1 deletions
diff --git a/tests/test-1.c b/tests/test-1.c index 318fd6e9..6ec1afb3 100644 --- a/tests/test-1.c +++ b/tests/test-1.c @@ -1,6 +1,7 @@ #define _GNU_SOURCE #include <pthread.h> +#include <assert.h> #include <unistd.h> #include <error.h> #include <errno.h> diff --git a/tests/test-16.c b/tests/test-16.c index b6a52d01..3660f5f7 100644 --- a/tests/test-16.c +++ b/tests/test-16.c @@ -33,7 +33,7 @@ test (void *arg) } static void -handler (int sig, siginfo_t *info, void *context) +handler (int sig) { assert (pthread_equal (pthread_self (), testthread)); printf ("handler: %d\n", pthread_self ()); diff --git a/tests/test-6.c b/tests/test-6.c index 98aa8ba7..edf2919e 100644 --- a/tests/test-6.c +++ b/tests/test-6.c @@ -3,6 +3,7 @@ #include <pthread.h> #include <stdio.h> #include <error.h> +#include <assert.h> #include <errno.h> #define THREADS 500 diff --git a/tests/test-7.c b/tests/test-7.c index bd97acfa..8159be34 100644 --- a/tests/test-7.c +++ b/tests/test-7.c @@ -1,6 +1,7 @@ #define _GNU_SOURCE #include <pthread.h> +#include <assert.h> #include <stdio.h> #include <error.h> #include <errno.h> |