Use the actual parameter types in PSearchMethodFunc instead of void pointers
Merge pull request #808 from mstorsjo/use-correct-param-types

Use the actual parameter types in PSearchMethodFunc instead of void pointers