From: John Hodge Date: Sat, 10 May 2014 03:01:43 +0000 (+0800) Subject: Kernel/threads - (minor) Clean up code (remove pre C99 constructs) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=b3f1b61b3c93caecfbfafeda11adac4080faf445;p=tpg%2Facess2.git Kernel/threads - (minor) Clean up code (remove pre C99 constructs) --- diff --git a/KernelLand/Kernel/threads.c b/KernelLand/Kernel/threads.c index 545896c4..8762a7c4 100644 --- a/KernelLand/Kernel/threads.c +++ b/KernelLand/Kernel/threads.c @@ -1314,22 +1314,16 @@ void Threads_int_DumpThread(tThread *thread) */ void Threads_DumpActive(void) { - tThread *thread; - tThreadList *list; - #if SCHEDULER_TYPE == SCHED_RR_PRI - int i; - #endif - Log("Active Threads: (%i reported)", giNumActiveThreads); #if SCHEDULER_TYPE == SCHED_RR_PRI - for( i = 0; i < MIN_PRIORITY+1; i++ ) + for( int i = 0; i < MIN_PRIORITY+1; i++ ) { - list = &gaActiveThreads[i]; + tThreadList *list = &gaActiveThreads[i]; #else - list = &gActiveThreads; + tThreadList *list = &gActiveThreads; #endif - for(thread=list->Head;thread;thread=thread->Next) + for(tThread *thread = list->Head; thread; thread = thread->Next) { Threads_int_DumpThread(thread); if(thread->Status != THREAD_STAT_ACTIVE)