Update list.c

chang cmp_f to cmp_t