summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorivmai <ivmai>2010-11-04 18:27:33 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:55 +0200
commit2f68acaa38da8de98f66e677306b7645e83159ef (patch)
tree022061e240330beb8fb356824cdc3034b4695967 /tests
parent174c1de6e93ac6308dca45063564e175f280d16a (diff)
2010-11-04 Ivan Maidanski <ivmai@mail.ru>
* tests/staticrootstest.c: Include string.h for memset() prototype. * tests/thread_leak_test.c (main): Fix printf() format specifiers.
Diffstat (limited to 'tests')
-rw-r--r--tests/staticrootstest.c1
-rw-r--r--tests/thread_leak_test.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/staticrootstest.c b/tests/staticrootstest.c
index b8031c8..1f63fa2 100644
--- a/tests/staticrootstest.c
+++ b/tests/staticrootstest.c
@@ -1,5 +1,6 @@
#include <stdio.h>
+#include <string.h>
#ifndef GC_DEBUG
# define GC_DEBUG
diff --git a/tests/thread_leak_test.c b/tests/thread_leak_test.c
index 57a22bb..df363a5 100644
--- a/tests/thread_leak_test.c
+++ b/tests/thread_leak_test.c
@@ -34,7 +34,7 @@ int main(void) {
}
for (i = 0; i < NTHREADS; ++i) {
if ((code = pthread_join(t[i], 0)) != 0) {
- printf("Thread join failed %lu\n", code);
+ printf("Thread join failed %d\n", code);
}
}
CHECK_LEAKS();