Fix mixed declarations and code (forbidden by ISO C90)