Fix the cmp function for qsort() to accept correct parameter type.