summaryrefslogtreecommitdiffhomepage
path: root/src/reqs.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-06 13:30:08 +0100
committerMichael Adam <obnox@samba.org>2009-12-07 00:22:36 +0100
commit4a8ea0d23bcff15ce3ccda9b3b85cb7b93345bf0 (patch)
treea13754965ec4a5dc2c107e9f915ec38f6dd28ecb /src/reqs.c
parent22fba83df2daf4002d6a17ecf8873e61c5c34cbb (diff)
upstream: Add upstream list parameter to upstream_get()
to abstract it from the concrete list in the config struct. Now upstream.c does not use any reference to config any more. Michael
Diffstat (limited to 'src/reqs.c')
-rw-r--r--src/reqs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reqs.c b/src/reqs.c
index 2ff7ac6..0d5f0e1 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -58,7 +58,7 @@
*/
#ifdef UPSTREAM_SUPPORT
# define UPSTREAM_CONFIGURED() (config.upstream_list != NULL)
-# define UPSTREAM_HOST(host) upstream_get(host)
+# define UPSTREAM_HOST(host) upstream_get(host, config.upstream_list)
#else
# define UPSTREAM_CONFIGURED() (0)
# define UPSTREAM_HOST(host) (NULL)