filerelaytest: Variable can not be declared inside for loop on non C99 mode