From 624d146cd6eefe1a6e6317f27a99f8c9521ab63d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 6 Dec 2009 22:53:17 +0100 Subject: Add reversepath_list parameter to reversepath_add. Michael --- src/reverse-proxy.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/reverse-proxy.c') diff --git a/src/reverse-proxy.c b/src/reverse-proxy.c index 7346fc4..126b957 100644 --- a/src/reverse-proxy.c +++ b/src/reverse-proxy.c @@ -29,7 +29,8 @@ /* * Add entry to the reversepath list */ -void reversepath_add (const char *path, const char *url) +void reversepath_add (const char *path, const char *url, + struct reversepath **reversepath_list) { struct reversepath *reverse; @@ -68,8 +69,8 @@ void reversepath_add (const char *path, const char *url) reverse->url = safestrdup (url); - reverse->next = config.reversepath_list; - config.reversepath_list = reverse; + reverse->next = *reversepath_list; + *reversepath_list = reverse; log_message (LOG_INFO, "Added reverse proxy rule: %s -> %s", reverse->path, -- cgit v1.2.3