diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-04-04 02:57:49 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-04-04 02:57:49 +0000 |
commit | 31f2b819c68f20ff188724669d3044a0680e3ceb (patch) | |
tree | 3cbec5633c5b1de6974d08e11807ee0ce2110a82 /lib/libthr/thread/thr_stack.c | |
parent | 2cacffb02b10bf82a1a5ee4d88c3092821839d16 (diff) | |
download | FreeBSD-src-31f2b819c68f20ff188724669d3044a0680e3ceb.zip FreeBSD-src-31f2b819c68f20ff188724669d3044a0680e3ceb.tar.gz |
WARNS level 4 cleanup.
Diffstat (limited to 'lib/libthr/thread/thr_stack.c')
-rw-r--r-- | lib/libthr/thread/thr_stack.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libthr/thread/thr_stack.c b/lib/libthr/thread/thr_stack.c index 3c5503f..9376086 100644 --- a/lib/libthr/thread/thr_stack.c +++ b/lib/libthr/thread/thr_stack.c @@ -113,7 +113,7 @@ static LIST_HEAD(, stack) mstackq = LIST_HEAD_INITIALIZER(mstackq); * high memory * */ -static void *last_stack = NULL; +static char *last_stack = NULL; /* * Round size up to the nearest multiple of @@ -236,8 +236,9 @@ _thr_stack_free(struct pthread_attr *attr) if ((attr != NULL) && ((attr->flags & THR_STACK_USER) == 0) && (attr->stackaddr_attr != NULL)) { - spare_stack = (attr->stackaddr_attr + attr->stacksize_attr - - sizeof(struct stack)); + spare_stack = (struct stack *) + ((char *)attr->stackaddr_attr + + attr->stacksize_attr - sizeof(struct stack)); spare_stack->stacksize = round_up(attr->stacksize_attr); spare_stack->guardsize = round_up(attr->guardsize_attr); spare_stack->stackaddr = attr->stackaddr_attr; |