Remove accidentally added const for plain non-pointer function parameters

This was accidentally added in 61117c85 when the pointer
parameters were made const.