ANSI <= C-90 compliance - for loop init

* Move var declaration outside of for loop initialization