diff options
| author | christos <christos@NetBSD.org> | 2007-01-20 18:58:11 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2007-01-20 18:58:11 +0000 |
| commit | 1eb6e5fbb2a3fea4283eee807ca0b7bf7acf0863 (patch) | |
| tree | 4a5d942aa914f5108c53a30190264b7beac3ed10 /lib/libpthread/pthread_stack.c | |
| parent | 25a0745d2e13416872c7ddac11f6b2a05a73e9b8 (diff) | |
add casts to pacify lint.
Diffstat (limited to 'lib/libpthread/pthread_stack.c')
| -rw-r--r-- | lib/libpthread/pthread_stack.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libpthread/pthread_stack.c b/lib/libpthread/pthread_stack.c index 435fffc1255..2846c7d9dd8 100644 --- a/lib/libpthread/pthread_stack.c +++ b/lib/libpthread/pthread_stack.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_stack.c,v 1.18 2006/12/23 05:14:47 ad Exp $ */ +/* $NetBSD: pthread_stack.c,v 1.19 2007/01/20 18:58:11 christos Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread_stack.c,v 1.18 2006/12/23 05:14:47 ad Exp $"); +__RCSID("$NetBSD: pthread_stack.c,v 1.19 2007/01/20 18:58:11 christos Exp $"); #define __EXPOSE_STACK 1 #include <sys/param.h> @@ -191,15 +191,15 @@ pthread__stackid_setup(void *base, size_t size, pthread_t *tp) redaddr = STACK_SHRINK(STACK_MAX(base, size), pagesize); t->pt_stack.ss_size = size - 2 * pagesize; #ifdef __MACHINE_STACK_GROWS_UP - t->pt_stack.ss_sp = (char *)base + pagesize; + t->pt_stack.ss_sp = (char *)(void *)base + pagesize; sp = t->pt_stack.ss_sp; #else - t->pt_stack.ss_sp = (char *)base + 2 * pagesize; + t->pt_stack.ss_sp = (char *)(void *)base + 2 * pagesize; sp = (caddr_t)t->pt_stack.ss_sp + t->pt_stack.ss_size; #endif /* Set up an initial ucontext pointer to a "safe" area */ - t->pt_uc = (ucontext_t *) + t->pt_uc = (ucontext_t *)(void *) STACK_ALIGN(STACK_GROW(sp, pagesize / 2), ~_UC_UCONTEXT_ALIGN); /* Protect the next-to-bottom stack page as a red zone. */ |
