From 14724f6bf859d37f97ee639474897bf488e86986 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 7 Jun 2007 19:45:19 +0000 Subject: - Remove unused variable from create_thread(). - Move kern_thr_*() prototype to where all the other kern_*() prototypes live. --- sys/kern/kern_thr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/kern/kern_thr.c') diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 33ec6c4..bcbe168 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -143,7 +144,6 @@ create_thread(struct thread *td, mcontext_t *ctx, stack_t stack; struct thread *newtd; struct proc *p; - long id; int error; error = 0; @@ -183,7 +183,6 @@ create_thread(struct thread *td, mcontext_t *ctx, * its storage, because child thread may exit quickly and * memory is freed before parent thread can access it. */ - id = newtd->td_tid; if ((child_tid != NULL && suword_lwpid(child_tid, newtd->td_tid)) || (parent_tid != NULL && -- cgit v1.1