From: Erik van der Kouwe Date: Mon, 4 Oct 2010 20:19:40 +0000 (+0000) Subject: Fix warnings in libmthread X-Git-Tag: v3.2.0~791 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/rndc.html?a=commitdiff_plain;h=591201c1a06c9ce9394f87b2cc4d1a5374cb0455;p=minix.git Fix warnings in libmthread --- diff --git a/lib/libmthread/allocate.c b/lib/libmthread/allocate.c index 29bb188ca..0e173ed79 100644 --- a/lib/libmthread/allocate.c +++ b/lib/libmthread/allocate.c @@ -1,6 +1,7 @@ #define ALLOCATE #include #include +#include #include "global.h" #include "proto.h" @@ -275,7 +276,6 @@ PUBLIC void mthread_init(void) */ if (!initialized) { - int i; no_threads = 0; used_threads = 0; running_main_thread = 1;/* mthread_init can only be called from the