For compatibility with pre-C99 C, variables should be declared at the start of the block.