mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
dbwind/DBWelement.c: constify args to AppendFlag/AppendString
non-static file local functions
This commit is contained in:
committed by
Tim Edwards
parent
bbc52ecd41
commit
a11352970f
+7
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user