Cleanup 529789ce

This patch adds missing `const`s, replaces one `prog_char` with `char`, and adds one `__unused__`; all to hush a few GCC 4.8 warnings (which are errors thanks to `-Werror` in `src/Makefile`.)