diff options
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r-- | sys/kern/kern_thr.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 <sys/sched.h> #include <sys/sysctl.h> #include <sys/smp.h> +#include <sys/syscallsubr.h> #include <sys/sysent.h> #include <sys/systm.h> #include <sys/sysproto.h> @@ -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 && |