Const correctness.
Wordsmith some comments.
Remove the single C99ism.

Because I'm feeling magnanimous to those Windows users.