Merge branch 'rs/qsort'
[gitweb.git] / fetch-pack.c
index 413937e7404d163883d5d0456ebefc4e1504cd87..300763fae1e5b602108ad15020d4f50152778b2b 100644 (file)
@@ -819,7 +819,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");