diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-11-23 08:49:04 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-24 23:58:22 +0100 |
commit | 6832c1d4b2a9eb97a36bb6565c84a8eef451a39c (patch) | |
tree | dad19839fa62edb783545b6387ec3fba151dd813 /lib/http2.c | |
parent | 80e7cfeb87c18a7552933ff43a96bd1b709eec22 (diff) | |
download | gnurl-6832c1d4b2a9eb97a36bb6565c84a8eef451a39c.tar.gz gnurl-6832c1d4b2a9eb97a36bb6565c84a8eef451a39c.tar.bz2 gnurl-6832c1d4b2a9eb97a36bb6565c84a8eef451a39c.zip |
checksrc: move open braces to comply with function declaration style
Diffstat (limited to 'lib/http2.c')
-rw-r--r-- | lib/http2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/http2.c b/lib/http2.c index de37fd167..2ef173140 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -225,7 +225,8 @@ int Curl_http2_ver(char *p, size_t len) https://tools.ietf.org/html/rfc7540#page-77 nghttp2_error_code enums are identical. */ -const char *Curl_http2_strerror(uint32_t err) { +const char *Curl_http2_strerror(uint32_t err) +{ #ifndef NGHTTP2_HAS_HTTP2_STRERROR const char *str[] = { "NO_ERROR", /* 0x0 */ @@ -1578,7 +1579,8 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex, * Parse the tokens as separated by comma and surrounded by whitespace. * Returns TRUE if found or FALSE if not. */ -static bool contains_trailers(const char *p, size_t len) { +static bool contains_trailers(const char *p, size_t len) +{ const char *end = p + len; for(;;) { for(; p != end && (*p == ' ' || *p == '\t'); ++p) |