remove useless 'extern' and trailing whitespace.