summaryrefslogtreecommitdiff
path: root/src/Listen.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-15 22:32:39 +0200
committerMax Kellermann <max@duempel.org>2013-10-15 22:49:01 +0200
commit7de96275dd6e3b6997e799413e4537561041e199 (patch)
tree4eab0c018168c14eb22f9e086917d16ef3f8f6a8 /src/Listen.cxx
parente13d0bf65653550c4cfe3f879441139f5242d8b1 (diff)
ConfigData: use std::string for config_param::value
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r--src/Listen.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx
index 6438d3ed4..7da39dd0e 100644
--- a/src/Listen.cxx
+++ b/src/Listen.cxx
@@ -66,13 +66,14 @@ listen_add_config_param(unsigned int port,
{
assert(param != NULL);
- if (0 == strcmp(param->value, "any")) {
+ if (0 == strcmp(param->value.c_str(), "any")) {
return listen_socket->AddPort(port, error_r);
} else if (param->value[0] == '/' || param->value[0] == '~') {
Path path = config_parse_path(param, error_r);
return !path.IsNull() && listen_socket->AddPath(path.c_str(), error_r);
} else {
- return listen_socket->AddHost(param->value, port, error_r);
+ return listen_socket->AddHost(param->value.c_str(), port,
+ error_r);
}
}
@@ -126,7 +127,8 @@ listen_global_init(Error &error)
if (!listen_add_config_param(port, param, error)) {
delete listen_socket;
error.FormatPrefix("Failed to listen on %s (line %i): ",
- param->value, param->line);
+ param->value.c_str(),
+ param->line);
return false;
}