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-10-04 12:17:24 +01:00 committed by Tim Edwards
parent bd03a550d3
commit c7f99e076e
1 changed files with 3 additions and 3 deletions

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; * cell graph; if it returns 0 then the subcells of 'def' are visited;
* if it returns 1 then the subcells are not visited. * if it returns 1 then the subcells are not visited.
* *
* int * void
* hiercount(parent, uses, child, cdata) * hiercount(parent, uses, child, cdata)
* CellDef *parent; * CellDef *parent;
* int uses; /# Scale factor: number of times child * 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 struct countArg
{ {
int (*ca_count)(); int (*ca_count)();
int (*ca_hiercount)(); void (*ca_hiercount)();
ClientData ca_cdata; ClientData ca_cdata;
}; };
@ -112,7 +112,7 @@ void
DBTreeCountPaint(def, count, hiercount, cleanup, cdata) DBTreeCountPaint(def, count, hiercount, cleanup, cdata)
CellDef *def; CellDef *def;
int (*count)(); int (*count)();
int (*hiercount)(); void (*hiercount)();
int (*cleanup)(); int (*cleanup)();
ClientData cdata; ClientData cdata;
{ {