summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>2000-01-06 07:17:24 +0000
committerDavid Leonard <d@cvs.openbsd.org>2000-01-06 07:17:24 +0000
commit503e900b1d6296600e44894f55149a0140452837 (patch)
tree168fed33b91c21c69c9ab32094d5a18409e4a84f
parent60814ecd0fd5390769be2f6ae86a216319404304 (diff)
include stdlib.h, unused vars
-rw-r--r--lib/libc_r/uthread/uthread_gc.c5
-rw-r--r--lib/libpthread/uthread/uthread_gc.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc_r/uthread/uthread_gc.c b/lib/libc_r/uthread/uthread_gc.c
index af78d0f6f98..954a09e03df 100644
--- a/lib/libc_r/uthread/uthread_gc.c
+++ b/lib/libc_r/uthread/uthread_gc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_gc.c,v 1.8 1999/11/30 04:59:42 d Exp $ */
+/* $OpenBSD: uthread_gc.c,v 1.9 2000/01/06 07:17:23 d Exp $ */
/*
* Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -36,6 +36,7 @@
*
*/
#include <errno.h>
+#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
@@ -53,8 +54,6 @@ _thread_gc(pthread_addr_t arg)
sigset_t mask;
pthread_t pthread;
pthread_t pthread_cln;
- pthread_t pthread_nxt;
- pthread_t pthread_prv;
struct timespec abstime;
void *p_stack;
diff --git a/lib/libpthread/uthread/uthread_gc.c b/lib/libpthread/uthread/uthread_gc.c
index af78d0f6f98..954a09e03df 100644
--- a/lib/libpthread/uthread/uthread_gc.c
+++ b/lib/libpthread/uthread/uthread_gc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_gc.c,v 1.8 1999/11/30 04:59:42 d Exp $ */
+/* $OpenBSD: uthread_gc.c,v 1.9 2000/01/06 07:17:23 d Exp $ */
/*
* Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -36,6 +36,7 @@
*
*/
#include <errno.h>
+#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
@@ -53,8 +54,6 @@ _thread_gc(pthread_addr_t arg)
sigset_t mask;
pthread_t pthread;
pthread_t pthread_cln;
- pthread_t pthread_nxt;
- pthread_t pthread_prv;
struct timespec abstime;
void *p_stack;