diff options
author | 2000-01-06 07:22:46 +0000 | |
---|---|---|
committer | 2000-01-06 07:22:46 +0000 | |
commit | a2f1edf3453435c8187104ad61f81ebd67a06d3f (patch) | |
tree | d436b4f58bc7a423242e4f32450ca99715db1691 /lib/libpthread/uthread | |
parent | kill silly casts to (long) (diff) | |
download | wireguard-openbsd-a2f1edf3453435c8187104ad61f81ebd67a06d3f.tar.xz wireguard-openbsd-a2f1edf3453435c8187104ad61f81ebd67a06d3f.zip |
copyright, includes, cast
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r-- | lib/libpthread/uthread/uthread_stack.c | 10 |
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; |