dbwind/DBWelement.c: constify args to AppendFlag/AppendString

non-static file local functions
This commit is contained in:
Darryl L. Miles 2024-10-21 14:31:50 +01:00 committed by Tim Edwards
parent bbc52ecd41
commit a11352970f
1 changed files with 7 additions and 3 deletions

View File

@ -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;