show-branch: use QSORT
[gitweb.git] / fetch-pack.c
index 85e77af61d05b492d6448fd4ad33abc2c348eaf1..8a38d30707eb48ee7cb089f3be7fd500f63e6cea 100644 (file)
@@ -812,7 +812,7 @@ static struct ref *do_fetch_pack(struct fetch_pack_args *args,
        int agent_len;
 
        sort_ref_list(&ref, ref_compare_name);
-       qsort(sought, nr_sought, sizeof(*sought), cmp_ref_by_name);
+       QSORT(sought, nr_sought, cmp_ref_by_name);
 
        if ((args->depth > 0 || is_repository_shallow()) && !server_supports("shallow"))
                die("Server does not support shallow clients");