Fix warning about reaching end of non-void function.
Fix warning about deprecated cast from string to char *.