From: Christophe Jaillet Date: Thu, 10 Dec 2015 20:05:44 +0000 (+0000) Subject: Fix some minor style issue. X-Git-Tag: 2.5.0-alpha~2548 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e64b36ddcb87cea8b525d91efe86dcfd89f51b8d;p=thirdparty%2Fapache%2Fhttpd.git Fix some minor style issue. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1719190 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/config.c b/server/config.c index 024c79e8144..045a4986ab4 100644 --- a/server/config.c +++ b/server/config.c @@ -136,7 +136,8 @@ AP_DECLARE(int) ap_hook_post_config(ap_HOOK_post_config_t *pf, apr_hook_debug_show("post_config", aszPre, aszSucc); } -AP_DECLARE(apr_array_header_t *) ap_hook_get_post_config(void) { +AP_DECLARE(apr_array_header_t *) ap_hook_get_post_config(void) +{ return _hooks.link_post_config; } @@ -148,7 +149,7 @@ AP_DECLARE(int) ap_run_post_config(apr_pool_t *pconf, ap_LINK_post_config_t *pHook; int n; - if(!_hooks.link_post_config) + if (!_hooks.link_post_config) return; pHook = (ap_LINK_post_config_t *)_hooks.link_post_config->elts; @@ -848,7 +849,7 @@ static const char *invoke_cmd(const command_rec *cmd, cmd_parms *parms, char *w, *w2, *w3; const char *errmsg = NULL; - /** Have we been provided a list of acceptable directives? */ + /* Have we been provided a list of acceptable directives? */ if (parms->override_list != NULL) { if (apr_table_get(parms->override_list, cmd->name) != NULL) { override_list_ok = 1; @@ -1381,7 +1382,7 @@ AP_DECLARE(const char *) ap_build_config(cmd_parms *parms, */ last_ptr = &(current->last); - if(last_ptr && *last_ptr) { + if (last_ptr && *last_ptr) { current = *last_ptr; } @@ -1389,7 +1390,7 @@ AP_DECLARE(const char *) ap_build_config(cmd_parms *parms, current = current->next; } - if(last_ptr) { + if (last_ptr) { /* update cached pointer to last node */ *last_ptr = current; } @@ -1611,8 +1612,8 @@ AP_DECLARE(const char *) ap_soak_end_container(cmd_parms *cmd, char *directive) ap_varbuf_init(cmd->temp_pool, &vb, VARBUF_INIT_LEN); - while((rc = ap_varbuf_cfg_getline(&vb, cmd->config_file, max_len)) - == APR_SUCCESS) { + while ((rc = ap_varbuf_cfg_getline(&vb, cmd->config_file, max_len)) + == APR_SUCCESS) { args = vb.buf; cmd_name = ap_getword_conf(cmd->temp_pool, &args);