That's correct C89.  Variable declarations need to go at the top of a block which can be a function but doesn't have to be.