From a11352970f3f52946e43b2e4f471f72e5f096802 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Mon, 21 Oct 2024 14:31:50 +0100 Subject: [PATCH] dbwind/DBWelement.c: constify args to AppendFlag/AppendString non-static file local functions --- dbwind/DBWelement.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dbwind/DBWelement.c b/dbwind/DBWelement.c index 7ca6542a..3f2ee651 100644 --- a/dbwind/DBWelement.c +++ b/dbwind/DBWelement.c @@ -103,8 +103,8 @@ static CellDef *dbwelemRootDef; /* To pass root cell definition from void AppendString(oldstr, newstr, postfix) char **oldstr; - char *newstr; - char *postfix; + const char *newstr; + const char *postfix; { char *tmpstr; int olen = 0; @@ -146,7 +146,11 @@ AppendString(oldstr, newstr, postfix) * ---------------------------------------------------------------------------- */ -void AppendFlag(char **rstr, bool *flagset, char *fname) +void +AppendFlag( + char **rstr, + bool *flagset, + const char *fname) { AppendString(rstr, *flagset ? "," : " ", fname); *flagset = TRUE;