pgbackrest.git / summary / log / commit / refs
commit 68a83ea2dcdc168aedefc856acc2c261889613fa
Author: David Steele <david@pgmasters.net>
Date: Wed Feb 14 14:21:55 2018 +0000
Add missing const to strLstAdd().
src/common/type/stringList.c | 2 +-
src/common/type/stringList.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/type/stringList.c b/src/common/type/stringList.c
index b2df45ee5..ef53993ba 100644
--- a/src/common/type/stringList.c
+++ b/src/common/type/stringList.c
@@ -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);
diff --git a/src/common/type/stringList.h b/src/common/type/stringList.h
index 91606031c..18be4ce09 100644
--- a/src/common/type/stringList.h
+++ b/src/common/type/stringList.h
@@ -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);
[parent: 5242e8eec59b]