From: Christophe Jaillet Date: Sat, 11 Oct 2014 05:47:02 +0000 (+0000) Subject: Style ('{' on same line as function definition) X-Git-Tag: 2.5.0-alpha~3782 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3ca028f706b81727c3d3bd7229584934faf5415;p=apache Style ('{' on same line as function definition) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1631021 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/mod_ssl_ct.c b/modules/ssl/mod_ssl_ct.c index 800cdb7ab5..d51164b151 100644 --- a/modules/ssl/mod_ssl_ct.c +++ b/modules/ssl/mod_ssl_ct.c @@ -1565,7 +1565,8 @@ static cert_chain *cert_chain_init(apr_pool_t *p, STACK_OF(X509) *chain) return cc; } -static void cert_chain_free(cert_chain *cc) { +static void cert_chain_free(cert_chain *cc) +{ X509 **elts = (X509 **)cc->cert_arr->elts; int i; diff --git a/modules/test/mod_policy.c b/modules/test/mod_policy.c index 8138f83165..74dcd8a2e9 100644 --- a/modules/test/mod_policy.c +++ b/modules/test/mod_policy.c @@ -335,7 +335,8 @@ static apr_status_t policy_keepalive_out_filter(ap_filter_t *f, return ap_pass_brigade(f->next, bb); } -static int vary_test(void *rec, const char *key, const char *value) { +static int vary_test(void *rec, const char *key, const char *value) +{ request_rec *r = (request_rec *)rec; char *token = apr_pstrdup(r->pool, value); char *last; diff --git a/server/apreq_module_cgi.c b/server/apreq_module_cgi.c index d3910f40e1..9efc6ac594 100644 --- a/server/apreq_module_cgi.c +++ b/server/apreq_module_cgi.c @@ -98,7 +98,8 @@ static const TRANS priorities[] = { {NULL, -1}, }; -static char* chomp(char* str) { +static char* chomp(char* str) +{ long p = (long)strlen(str); while (--p >= 0) { switch ((char)(str[p])) { @@ -949,7 +950,8 @@ static apr_status_t ba_cleanup(void *data) Definately more work needed here... */ -static int is_interactive_mode(apr_pool_t *pool) { +static int is_interactive_mode(apr_pool_t *pool) +{ char *value = NULL, qs[] = "GATEWAY_INTERFACE"; apr_status_t rv; diff --git a/server/apreq_util.c b/server/apreq_util.c index 6d33fa94fb..7f196a7607 100644 --- a/server/apreq_util.c +++ b/server/apreq_util.c @@ -321,7 +321,8 @@ APREQ_DECLARE(apreq_charset_t) apreq_charset_divine(const char *src, } -static APR_INLINE apr_uint16_t hex4_to_bmp(const char *what) { +static APR_INLINE apr_uint16_t hex4_to_bmp(const char *what) +{ register apr_uint16_t digit = 0; #if !APR_CHARSET_EBCDIC @@ -524,7 +525,8 @@ APREQ_DECLARE(apr_size_t) apreq_encode(char *dest, const char *src, return d - dest; } -static int is_quoted(const char *p, const apr_size_t len) { +static int is_quoted(const char *p, const apr_size_t len) +{ if (len > 1 && p[0] == '"' && p[len-1] == '"') { apr_size_t i; int backslash = 0;