From 1c3f5517fabc264d7b37935bd37197cdd68250ba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Jan 2015 22:36:13 +0100 Subject: config/Option: convert to strictly-typed enum --- src/Listen.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Listen.cxx') 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); -- cgit v1.2.3