diff options
author | jhb <jhb@FreeBSD.org> | 2007-06-07 19:45:19 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-06-07 19:45:19 +0000 |
commit | 14724f6bf859d37f97ee639474897bf488e86986 (patch) | |
tree | 7a56af44eb40012604dc8a767ad59cd9f4ae0144 /sys/kern | |
parent | dc29a4eb643e4e3d15b1b9d3ce356451106c984d (diff) | |
download | FreeBSD-src-14724f6bf859d37f97ee639474897bf488e86986.zip FreeBSD-src-14724f6bf859d37f97ee639474897bf488e86986.tar.gz |
- Remove unused variable from create_thread().
- Move kern_thr_*() prototype to <sys/syscallsubr.h> where all the other
kern_*() prototypes live.
Diffstat (limited to 'sys/kern')
-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 && |