diff options
author | mtm <mtm@FreeBSD.org> | 2003-05-23 09:48:20 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-05-23 09:48:20 +0000 |
commit | 6356a9c88e04455186a9b6d683ace14dadb891b7 (patch) | |
tree | a5c7ab227f8b7ea35430bf21cc7cafe1b6b756f3 /lib/libthr/arch | |
parent | 7f8de979fc762dc4b610f5f1bc9b9845a9c638a2 (diff) | |
download | FreeBSD-src-6356a9c88e04455186a9b6d683ace14dadb891b7.zip FreeBSD-src-6356a9c88e04455186a9b6d683ace14dadb891b7.tar.gz |
Make WARNS2 clean. The fixes mostly included:
o removed unused variables
o explicit inclusion of header files
o prototypes for externally defined functions
Approved by: re/blanket libthr
Diffstat (limited to 'lib/libthr/arch')
-rw-r--r-- | lib/libthr/arch/i386/i386/_setcurthread.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libthr/arch/i386/i386/_setcurthread.c b/lib/libthr/arch/i386/i386/_setcurthread.c index b561f3f..69a5e8f 100644 --- a/lib/libthr/arch/i386/i386/_setcurthread.c +++ b/lib/libthr/arch/i386/i386/_setcurthread.c @@ -31,6 +31,8 @@ #include <pthread.h> #include <stdio.h> +#include <stdlib.h> +#include <string.h> #include <machine/sysarch.h> #include <machine/segments.h> @@ -48,6 +50,9 @@ static spinlock_t ldt_lock = _SPINLOCK_INITIALIZER; static void ldt_init(void); +/* in _curthread.S */ +extern void _set_gs(int); + /* * Initialize the array of ldt_entries and the next free slot. * This routine must be called with the global ldt lock held. |