mirror of
https://github.com/postgres/postgres.git
synced 2025-12-19 17:02:53 +03:00
Replace calls to pg_qsort() with the qsort() macro.
Calls to this function might give the impression that pg_qsort() is somehow different than qsort(), when in fact there is a qsort() macro in port.h that expands all in-tree uses to pg_qsort(). Reviewed-by: Mats Kindahl Discussion: https://postgr.es/m/CA%2B14426g2Wa9QuUpmakwPxXFWG_1FaY0AsApkvcTBy-YfS6uaw%40mail.gmail.com
This commit is contained in:
@@ -1369,7 +1369,7 @@ build_distances(FmgrInfo *distanceFn, Oid colloid,
|
||||
* Sort the distances in descending order, so that the longest gaps are at
|
||||
* the front.
|
||||
*/
|
||||
pg_qsort(distances, ndistances, sizeof(DistanceValue), compare_distances);
|
||||
qsort(distances, ndistances, sizeof(DistanceValue), compare_distances);
|
||||
|
||||
return distances;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user