From 5f7791009790dc40f2d76be310ffeab55c242ced Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 25 Jan 2009 16:03:49 +0100 Subject: conf: const pointers in block get functions All config_get_block_*() functions should accept constant config_param pointers. --- src/listen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/listen.c') diff --git a/src/listen.c b/src/listen.c index a0efbe148..51f6f9f22 100644 --- a/src/listen.c +++ b/src/listen.c @@ -128,7 +128,7 @@ static bool ipv6Supported(void) static void parseListenConfigParam(G_GNUC_UNUSED unsigned int port, - struct config_param *param) + const struct config_param *param) { const struct sockaddr *addrp; socklen_t addrlen; @@ -254,7 +254,7 @@ parseListenConfigParam(G_GNUC_UNUSED unsigned int port, void listenOnPort(void) { int port = config_get_positive(CONF_PORT, DEFAULT_PORT); - struct config_param *param = + const struct config_param *param = config_get_next_param(CONF_BIND_TO_ADDRESS, NULL); do { -- cgit v1.2.3