aboutsummaryrefslogtreecommitdiff
path: root/src/libthread
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-12-23 13:03:07 -0800
committerRuss Cox <rsc@swtch.com>2008-12-23 13:03:07 -0800
commit0ac670585c5eac5a6348aeb0e7b018659b2dbc09 (patch)
treefc92a415f5d120294caa178b66eaa19d1a75969b /src/libthread
parent3d424a64ec863d963784bab7faf595fafef14832 (diff)
downloadplan9port-0ac670585c5eac5a6348aeb0e7b018659b2dbc09.tar.gz
plan9port-0ac670585c5eac5a6348aeb0e7b018659b2dbc09.tar.bz2
plan9port-0ac670585c5eac5a6348aeb0e7b018659b2dbc09.zip
libthread: work around gcc warning on FreeBSD
Diffstat (limited to 'src/libthread')
-rw-r--r--src/libthread/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libthread/thread.c b/src/libthread/thread.c
index f8f8d11e..94910f2c 100644
--- a/src/libthread/thread.c
+++ b/src/libthread/thread.c
@@ -128,7 +128,7 @@ threadalloc(void (*fn)(void*), void *arg, uint stack)
/* call makecontext to do the real work. */
/* leave a few words open on both ends */
- t->context.uc.uc_stack.ss_sp = t->stk+8;
+ t->context.uc.uc_stack.ss_sp = (void*)(t->stk+8);
t->context.uc.uc_stack.ss_size = t->stksize-64;
#if defined(__sun__) && !defined(__MAKECONTEXT_V2_SOURCE) /* sigh */
/* can avoid this with __MAKECONTEXT_V2_SOURCE but only on SunOS 5.9 */