C89 style declarations should be at the top of the block.