Add const qualifiers to unmodified function parameters, fixes the warning: