DBcount.c: DBTreeCountPaint() unify return type of hiercount() callback

The call-site does not expect a return value.
The use case in command/Cmdwizard.c is written to be void.

So a resolution was needed.
This commit is contained in:
Darryl L. Miles
2024-12-26 13:13:14 -05:00
committed by Tim Edwards
parent bd03a550d3
commit c7f99e076e
+3 -3
View File
@@ -50,7 +50,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
* cell graph; if it returns 0 then the subcells of 'def' are visited;
* if it returns 1 then the subcells are not visited.
*
* int
* void
* hiercount(parent, uses, child, cdata)
* CellDef *parent;
* int uses; /# Scale factor: number of times child
@@ -104,7 +104,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
struct countArg
{
int (*ca_count)();
int (*ca_hiercount)();
void (*ca_hiercount)();
ClientData ca_cdata;
};
@@ -112,7 +112,7 @@ void
DBTreeCountPaint(def, count, hiercount, cleanup, cdata)
CellDef *def;
int (*count)();
int (*hiercount)();
void (*hiercount)();
int (*cleanup)();
ClientData cdata;
{