summaryrefslogtreecommitdiff
path: root/lib/libpthread/uthread
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>2000-01-06 07:22:47 +0000
committerDavid Leonard <d@cvs.openbsd.org>2000-01-06 07:22:47 +0000
commit94e40e40fd799f40924d0c43709d8dc8b2222b47 (patch)
tree17beb59aa9d94f056bbdabca1674a3bf9bf93330 /lib/libpthread/uthread
parent0540edce076ab83bebf48e1588d28b6caaa5d61b (diff)
copyright, includes, cast
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r--lib/libpthread/uthread/uthread_stack.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libpthread/uthread/uthread_stack.c b/lib/libpthread/uthread/uthread_stack.c
index 4cc69718111..003ddde74f6 100644
--- a/lib/libpthread/uthread/uthread_stack.c
+++ b/lib/libpthread/uthread/uthread_stack.c
@@ -1,5 +1,8 @@
-/* $OpenBSD: uthread_stack.c,v 1.3 1999/11/26 00:53:21 d Exp $ */
-/* David Leonard <david.leonard@csee.uq.edu.au> 1999.
+/* $OpenBSD: uthread_stack.c,v 1.4 2000/01/06 07:22:46 d Exp $ */
+/*
+ * Copyright 1999, David Leonard. All rights reserved.
+ * <insert BSD-style license&disclaimer>
+ */
/*
* Thread stack allocation.
@@ -12,6 +15,7 @@
#include <stddef.h>
#include <stdlib.h>
+#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/user.h>
@@ -71,7 +75,7 @@ _thread_stack_alloc(base, size)
PANIC("Cannot protect stack red zone");
/* Find the useful range of the stack. */
- stack->base = stack->redzone + nbpg;
+ stack->base = (caddr_t)stack->redzone + nbpg;
stack->size = size;
return stack;