1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-09-16 09:06:18 +02:00

Add missing const to strLstAdd().

This commit is contained in:
David Steele
2018-02-14 09:21:55 -05:00
parent 5242e8eec5
commit 68a83ea2dc
2 changed files with 2 additions and 2 deletions

View File

@@ -157,7 +157,7 @@ strLstDup(const StringList *sourceList)
Wrapper for lstAdd()
***********************************************************************************************************************************/
StringList *
strLstAdd(StringList *this, String *string)
strLstAdd(StringList *this, const String *string)
{
String *stringCopy = strDup(string);
return (StringList *)lstAdd((List *)this, &stringCopy);

View File

@@ -33,7 +33,7 @@ StringList *strLstNewSplitSizeZ(const String *string, const char *delimiter, siz
StringList *strLstNewVarLst(const VariantList *sourceList);
StringList *strLstDup(const StringList *sourceList);
StringList *strLstAdd(StringList *this, String *string);
StringList *strLstAdd(StringList *this, const String *string);
StringList *strLstAddZ(StringList *this, const char *string);
String *strLstGet(const StringList *this, unsigned int listIdx);
String *strLstJoin(const StringList *this, const char *separator);