CIFrdpoly.c: qsort 'compar' function argument prototype fix

This makes it strictly conform to function pointer prototype.
This commit is contained in:
Darryl L. Miles
2025-01-04 11:31:17 -05:00
committed by Tim Edwards
parent b6775f902b
commit 4e768d5a3d
+12 -5
View File
@@ -55,10 +55,14 @@ static const char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magi
*/
int
cifLowX(a, b)
CIFPath **a, **b;
cifLowX(
const void *aa,
const void *bb)
{
Point *p, *q;
const CIFPath **a = (const CIFPath **)aa;
const CIFPath **b = (const CIFPath **)bb;
const Point *p, *q;
p = &(*a)->cifp_point;
q = &(*b)->cifp_point;
@@ -88,9 +92,12 @@ cifLowX(a, b)
*/
int
cifLowY(a, b)
Point **a, **b;
cifLowY(
const void *aa,
const void *bb)
{
const Point **a = (const Point **)aa;
const Point **b = (const Point **)bb;
if ((*a)->p_y < (*b)->p_y)
return (-1);
if ((*a)->p_y > (*b)->p_y)