From 509e82e402d64c79f27c9a10d75b100a1ac5fefa Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 3 Dec 2007 23:33:22 +0100 Subject: r26272: Remove global_loadparm in some more places. (This used to be commit 1ab76ecc5311fa863e5d04899b6f110899818f55) --- source4/web_server/http.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/web_server') diff --git a/source4/web_server/http.c b/source4/web_server/http.c index 558cc79eb9..bd6efa9262 100644 --- a/source4/web_server/http.c +++ b/source4/web_server/http.c @@ -139,7 +139,8 @@ static int http_readFile(EspHandle handle, const char *path, const char *base_dir) { - struct websrv_context *web = talloc_get_type(handle, struct websrv_context); + struct websrv_context *web = talloc_get_type(handle, + struct websrv_context); int fd = -1; struct stat st; *buf = NULL; @@ -169,12 +170,11 @@ failed: return -1; } -static int http_readFileFromSwatDir(EspHandle handle, - char **buf, - int *len, +static int http_readFileFromSwatDir(EspHandle handle, char **buf, int *len, const char *path) { - return http_readFile(handle, buf, len, path, lp_swat_directory(global_loadparm)); + return http_readFile(handle, buf, len, path, + lp_swat_directory(global_loadparm)); } -- cgit