Source
diff --git a/yara.c b/yara.c
index 61fb234..42fb739 100644
--- a/yara.c
+++ b/yara.c
thread_args.rules = rules;
thread_args.start_time = start_time;
- for (int i = 0; i < threads; i++)
+ int i;
+
+ for (i = 0; i < threads; i++)
{
if (create_thread(&thread[i], scanning_thread, (void*) &thread_args))
{
file_queue_finish();
// Wait for scan threads to finish
- for (int i = 0; i < threads; i++)
+ for (i = 0; i < threads; i++)
thread_join(&thread[i]);
file_queue_destroy();