useless 'extern' and trailing whitespace removal