Correction to follow C90 standard (separate declarations and code).