Use void pointers correctly.