src: do cppcheck style suggestions.