cppcheck: fix 3 warning types