list: Avoid function pointer <-> void pointer.

ISO C forbids assignment between function pointer and void pointer.