Revert "fix compilation error - ISO C90 forbids mixed declarations and code"
This reverts commit 19230ccb5dea42a4d341529c9da88a24108384f7.