From d59332de14fe79c4554645b82244e041eab7a75d Mon Sep 17 00:00:00 2001 From: Rainer Jung Date: Sun, 22 Aug 2010 09:46:23 +0000 Subject: [PATCH] Minor style nits. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@987853 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 16ec4f931c..938b20223d 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -446,7 +446,7 @@ static int alias_match(const char *uri, const char *alias_fakename) /* We reach the end of the uri before the end of "alias_fakename" * for example uri is "/" and alias_fakename "/examples" */ - if (urip == end_uri && aliasp!=end_fakename) { + if (urip == end_uri && aliasp != end_fakename) { return 0; } @@ -1162,7 +1162,7 @@ static void * merge_proxy_config(apr_pool_t *p, void *basev, void *overridesv) ps->maxfwd_set = overrides->maxfwd_set || base->maxfwd_set; ps->error_override = (overrides->error_override_set == 0) ? base->error_override : overrides->error_override; ps->error_override_set = overrides->error_override_set || base->error_override_set; - ps->timeout= (overrides->timeout_set == 0) ? base->timeout : overrides->timeout; + ps->timeout = (overrides->timeout_set == 0) ? base->timeout : overrides->timeout; ps->timeout_set = overrides->timeout_set || base->timeout_set; ps->badopt = (overrides->badopt_set == 0) ? base->badopt : overrides->badopt; ps->badopt_set = overrides->badopt_set || base->badopt_set; @@ -1668,12 +1668,12 @@ static const char* ap_get_module_config(parms->server->module_config, &proxy_module); int timeout; - timeout=atoi(arg); + timeout = atoi(arg); if (timeout<1) { return "Proxy Timeout must be at least 1 second."; } - psf->timeout_set=1; - psf->timeout=apr_time_from_sec(timeout); + psf->timeout_set = 1; + psf->timeout = apr_time_from_sec(timeout); return NULL; } @@ -1945,7 +1945,7 @@ static const char *proxysection(cmd_parms *cmd, void *mconfig, const char *arg) "> directive missing closing '>'", NULL); } - arg=apr_pstrndup(cmd->pool, arg, endp-arg); + arg = apr_pstrndup(cmd->pool, arg, endp-arg); if (!arg) { if (thiscmd->cmd_data) @@ -2339,7 +2339,7 @@ static void register_hooks(apr_pool_t *p) /* fixup before mod_rewrite, so that the proxied url will not * escaped accidentally by our fixup. */ - static const char * const aszSucc[]={ "mod_rewrite.c", NULL }; + static const char * const aszSucc[] = { "mod_rewrite.c", NULL}; /* Only the mpm_winnt has child init hook handler. * make sure that we are called after the mpm * initializes. -- 2.40.0