From 073233b9f14c1693d83dc5ad82a76edb00ec8bd6 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 6 Dec 2009 01:35:49 +0100 Subject: conf: move setting of default stathost to initialize_config_defaults() Michael --- src/main.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main.c b/src/main.c index 5967778..8eaee7f 100644 --- a/src/main.c +++ b/src/main.c @@ -312,6 +312,7 @@ static void initialize_config_defaults (struct config_s *conf) * (FIXME: Should have a better API for all this) */ conf->errorpages = NULL; + conf->stathost = safestrdup (TINYPROXY_STATHOST); } int @@ -350,12 +351,6 @@ main (int argc, char **argv) exit (EX_SOFTWARE); } - if (!config.stathost) { - log_message (LOG_INFO, "Setting stathost to \"%s\".", - TINYPROXY_STATHOST); - config.stathost = safestrdup (TINYPROXY_STATHOST); - } - if (!config.user) { log_message (LOG_WARNING, "You SHOULD set a UserName in the " "config file. Using current user instead."); -- cgit v1.2.3