summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-12-08 18:15:46 +0000
committertedu <tedu@openbsd.org>2014-12-08 18:15:46 +0000
commit896c21001c629508739a373380b41da854ebaf86 (patch)
tree0f003a7ca0baa665562cff57112bed3a4f5e2778
parentRemove a few foo_start() calls within ioctl handlers. Odd spot to have (diff)
downloadwireguard-openbsd-896c21001c629508739a373380b41da854ebaf86.tar.xz
wireguard-openbsd-896c21001c629508739a373380b41da854ebaf86.zip
avoid void arithmetic. from david carlier
-rw-r--r--lib/librthread/rthread_np.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/librthread/rthread_np.c b/lib/librthread/rthread_np.c
index 7e73ce12d45..9b26f567915 100644
--- a/lib/librthread/rthread_np.c
+++ b/lib/librthread/rthread_np.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_np.c,v 1.14 2014/08/09 03:29:35 guenther Exp $ */
+/* $OpenBSD: rthread_np.c,v 1.15 2014/12/08 18:15:46 tedu Exp $ */
/*
* Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>
* Copyright (c) 2005 Otto Moerbeek <otto@openbsd.org>
@@ -66,7 +66,8 @@ pthread_stackseg_np(pthread_t thread, stack_t *sinfo)
#ifdef MACHINE_STACK_GROWS_UP
sinfo->ss_sp = thread->stack->base;
#else
- sinfo->ss_sp = thread->stack->base + thread->stack->len;
+ sinfo->ss_sp = (char *)thread->stack->base +
+ thread->stack->len;
#endif
sinfo->ss_size = thread->stack->len;
if (thread->stack->guardsize != 1)