# HG changeset patch # User mru # Date 1182006917 0 # Node ID 1d116d421bbb26a47e511db4fbdd944944dad4e3 # Parent 387979b83884dab171dd3d67119222c33c64d78f correct type of qsort() comparison callback diff -r 387979b83884 -r 1d116d421bbb fraps.c --- a/fraps.c Sat Jun 16 15:15:16 2007 +0000 +++ b/fraps.c Sat Jun 16 15:15:17 2007 +0000 @@ -88,7 +88,8 @@ * Comparator - our nodes should ascend by count * but with preserved symbol order */ -static int huff_cmp(const Node *a, const Node *b){ +static int huff_cmp(const void *va, const void *vb){ + const Node *a = va, *b = vb; return (a->count - b->count)*256 + a->sym - b->sym; }