Code style cleanups

Ran the source files through `indent -kr -pcs --no-tabs -psl -l79`.

That's basically K&R with some additions from the GNU style,  such as function return types being on their own line, and a space before function names and the opening parenthesis.