--- resin-3.0.13.original/modules/c/src/common/config.c 2005-05-04 21:40:14.000000000 +0200 +++ resin-3.0.13/modules/c/src/common/config.c 2005-07-02 13:30:53.000000000 +0200 @@ -82,6 +82,10 @@ static time_t g_last_update; static hash_t g_url_cache[CACHE_SIZE]; +static resin_host_t * +cse_match_host_impl(config_t *config, const char *host_name, + int port, time_t now); + static location_t * cse_add_unique_location(mem_pool_t *pool, web_app_t *app, char *prefix, char *suffix, int is_exact, int ignore) @@ -406,7 +410,7 @@ if (strcmp(buffer, host->name)) { resin_host_t *canonical; - canonical = cse_match_host_impl(config, buffer, 0, now); + canonical = (resin_host_t*)cse_match_host_impl(config, buffer, 0, now); host->canonical = canonical; } } @@ -675,7 +679,7 @@ case HMUX_DISPATCH_HOST: hmux_read_string(&s, buffer, sizeof(buffer)); - host = cse_match_host_impl(config, buffer, 0, now); + host = (resin_host_t*)cse_match_host_impl(config, buffer, 0, now); read_config(&s, config, host, 0, &is_change); break; @@ -850,7 +854,7 @@ return host->canonical; if (! cse_update_host_from_resin(host, now) && *host_name) - host->canonical = cse_match_host_impl(config, "", 0, now); + host->canonical = (resin_host_t*)cse_match_host_impl(config, "", 0, now); return host->canonical; }