summaryrefslogtreecommitdiff
path: root/src/Listen.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-21 22:36:13 +0100
committerMax Kellermann <max@duempel.org>2015-01-21 23:30:00 +0100
commit1c3f5517fabc264d7b37935bd37197cdd68250ba (patch)
tree509f68fe930e79bfa4c70a1cf2146a347f8acdef /src/Listen.cxx
parent10972da06030d57429dc2c86c21e37fd0aca88dc (diff)
config/Option: convert to strictly-typed enum
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r--src/Listen.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx
index 05a2bdd4d..c360b9650 100644
--- a/src/Listen.cxx
+++ b/src/Listen.cxx
@@ -103,9 +103,9 @@ listen_systemd_activation(Error &error_r)
bool
listen_global_init(EventLoop &loop, Partition &partition, Error &error)
{
- int port = config_get_positive(CONF_PORT, DEFAULT_PORT);
+ int port = config_get_positive(ConfigOption::PORT, DEFAULT_PORT);
const struct config_param *param =
- config_get_param(CONF_BIND_TO_ADDRESS);
+ config_get_param(ConfigOption::BIND_TO_ADDRESS);
listen_socket = new ClientListener(loop, partition);