Commit Diff


commit - 976846014daddf292e080f2857ae63173f7b1433
commit + 93bba072c2b45bc5879500248f203610dfa1405b
blob - 6d9aba3a2c465cbd5214ad2a5a407faabacde49a
blob + 9ebc19818bde5e4d972fff5825b41a7fd25b6546
--- libexec/got-index-pack/got-index-pack.c
+++ libexec/got-index-pack/got-index-pack.c
@@ -511,7 +511,7 @@ make_packidx(struct got_packidx *packidx, int nobj,
 	int i;
 	uint32_t idx = 0;
 
-	mergesort(objects, nobj, sizeof(struct got_indexed_object),
+	qsort(objects, nobj, sizeof(struct got_indexed_object),
 	    indexed_obj_cmp);
 
 	memset(packidx->hdr.fanout_table, 0,