diff options
author | marcel <marcel@FreeBSD.org> | 2005-11-19 04:45:15 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2005-11-19 04:45:15 +0000 |
commit | 3886f95485795ecfb9fa9c396d0a2eab4217b266 (patch) | |
tree | a0f47d318b97f90e315b7f4e9e7c0a932dad8ea2 /lib | |
parent | bfb066610efd7b031473f870526f946813d0c2d6 (diff) | |
download | FreeBSD-src-3886f95485795ecfb9fa9c396d0a2eab4217b266.zip FreeBSD-src-3886f95485795ecfb9fa9c396d0a2eab4217b266.tar.gz |
o Include <string.h>
o Make this ILP32/LP64 clean: cast pointers to long.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkse/test/guard_b.c | 8 | ||||
-rw-r--r-- | lib/libpthread/test/guard_b.c | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lib/libkse/test/guard_b.c b/lib/libkse/test/guard_b.c index 42bf4ed..2e27031 100644 --- a/lib/libkse/test/guard_b.c +++ b/lib/libkse/test/guard_b.c @@ -34,6 +34,7 @@ #include <assert.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <limits.h> #include <pthread.h> @@ -69,9 +70,10 @@ recurse(void *args) * hand tweaking, so just print a warning rather than aborting. */ if (parms->top - (void *)&top != FRAME_SIZE * parms->cur) { - fprintf(stderr, "Stack size (%d) != expected (%d), frame %d\n", - parms->top - (void *)&top, FRAME_SIZE * parms->cur, - parms->cur); + fprintf(stderr, + "Stack size (%ld) != expected (%ld), frame %ld\n", + (long)parms->top - (long)&top, + (long)(FRAME_SIZE * parms->cur), (long)parms->cur); } parms->cur++; diff --git a/lib/libpthread/test/guard_b.c b/lib/libpthread/test/guard_b.c index 42bf4ed..2e27031 100644 --- a/lib/libpthread/test/guard_b.c +++ b/lib/libpthread/test/guard_b.c @@ -34,6 +34,7 @@ #include <assert.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <limits.h> #include <pthread.h> @@ -69,9 +70,10 @@ recurse(void *args) * hand tweaking, so just print a warning rather than aborting. */ if (parms->top - (void *)&top != FRAME_SIZE * parms->cur) { - fprintf(stderr, "Stack size (%d) != expected (%d), frame %d\n", - parms->top - (void *)&top, FRAME_SIZE * parms->cur, - parms->cur); + fprintf(stderr, + "Stack size (%ld) != expected (%ld), frame %ld\n", + (long)parms->top - (long)&top, + (long)(FRAME_SIZE * parms->cur), (long)parms->cur); } parms->cur++; |