From 66a479714d56c8bc25741881c9f7498ac7f36b30 Mon Sep 17 00:00:00 2001 From: Andreas Wendleder Date: Wed, 10 Jun 2026 03:49:16 +0200 Subject: [PATCH] commands: convert K&R function definitions to ANSI C Convert the old-style (K&R) function definitions in commands/ to ANSI C prototypes, formatted in the project's convention: the return type on its own line and each parameter on its own line, indented four spaces, with the original parameter comments retained. Builds cleanly under GCC 16 / C23 (with the -std=gnu17 build change). Co-Authored-By: Claude Opus 4.8 --- commands/CmdCD.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/CmdCD.c b/commands/CmdCD.c index c9315378..be44f0ec 100644 --- a/commands/CmdCD.c +++ b/commands/CmdCD.c @@ -1138,7 +1138,7 @@ CmdCellname( int option; int locargc = cmd->tx_argc; char *cellname = NULL, *orient = NULL; - void (*func)(); + void (*func)(char *, int, bool); CellDef *newDef, *cellDef; static const char * const cmdCellOption[] =