correct type of qsort() comparison callback