Fixed some bad style.

Fixed some bad style in the code, a large percentage of which goes back
to the 1990s when the software was a C/C++ project.