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 2024-10-04 11:38:42 +01:00 committed by Tim Edwards
parent b6775f902b
commit 4e768d5a3d
1 changed files with 12 additions and 5 deletions

View File

@ -55,10 +55,14 @@ static const char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magi
*/ */
int int
cifLowX(a, b) cifLowX(
CIFPath **a, **b; 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; p = &(*a)->cifp_point;
q = &(*b)->cifp_point; q = &(*b)->cifp_point;
@ -88,9 +92,12 @@ cifLowX(a, b)
*/ */
int int
cifLowY(a, b) cifLowY(
Point **a, **b; 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) if ((*a)->p_y < (*b)->p_y)
return (-1); return (-1);
if ((*a)->p_y > (*b)->p_y) if ((*a)->p_y > (*b)->p_y)