From 7ebaba6b39a08ea71b5b94395e27d2fe0b418c18 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 12:09:57 +0100 Subject: [PATCH] DBcount.c: clarify function documentation of hiercount() callback DBTreeCountPaint(def, count, hiercount, cleanup, cdata) callback hiercount() The K&R function prototype syntax in the documentation might confuse reader into which argument order is correct (as a modern developer might be out of practice with interpreting K&R syntax) --- database/DBcount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/DBcount.c b/database/DBcount.c index e8793b2f..4355262a 100644 --- a/database/DBcount.c +++ b/database/DBcount.c @@ -52,10 +52,11 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/ * * int * hiercount(parent, uses, child, cdata) - * CellDef *parent, *child; + * CellDef *parent; * int uses; /# Scale factor: number of times child * # is used by parent * #/ + * CellDef *child; * ClientData cdata; * { * }