summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/openbsd/Host.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Host/openbsd/Host.cpp')
-rw-r--r--lldb/source/Host/openbsd/Host.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Host/openbsd/Host.cpp b/lldb/source/Host/openbsd/Host.cpp
index 0535256b9aa..207c7d32773 100644
--- a/lldb/source/Host/openbsd/Host.cpp
+++ b/lldb/source/Host/openbsd/Host.cpp
@@ -45,16 +45,17 @@ extern char **environ;
using namespace lldb;
using namespace lldb_private;
-size_t Host::GetEnvironment(StringList &env) {
+Environment Host::GetEnvironment() {
+ Environment env;
char *v;
char **var = environ;
for (; var != NULL && *var != NULL; ++var) {
v = strchr(*var, (int)'-');
if (v == NULL)
continue;
- env.AppendString(v);
+ env.insert(v);
}
- return env.GetSize();
+ return env;
}
static bool
OpenPOWER on IntegriCloud