Clean up a few minor annoyances in my C snippets.

Fix some minor problems with C and C++ snippets to reflect better coding
style.