Use the proper type in function parameters instead of void pointers