http2: declare TU-local variables static

This fixes the following clang warnings:

http2.c:184:27: error: no previous extern declaration for non-static
variable 'Curl_handler_http2' [-Werror,-Wmissing-variable-declarations]
http2.c:204:27: error: no previous extern declaration for non-static
variable 'Curl_handler_http2_ssl'
[-Werror,-Wmissing-variable-declarations]
This commit is contained in:
Marcel Raad 2017-04-30 22:33:33 +02:00
Родитель 092d012441
Коммит dc9e4859bb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B4668817AE6D6CD4
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -181,7 +181,7 @@ void Curl_http2_setup_conn(struct connectdata *conn)
* but will be used at run-time when the protocol is dynamically switched from * but will be used at run-time when the protocol is dynamically switched from
* HTTP to HTTP2. * HTTP to HTTP2.
*/ */
const struct Curl_handler Curl_handler_http2 = { static const struct Curl_handler Curl_handler_http2 = {
"HTTP", /* scheme */ "HTTP", /* scheme */
ZERO_NULL, /* setup_connection */ ZERO_NULL, /* setup_connection */
Curl_http, /* do_it */ Curl_http, /* do_it */
@ -201,7 +201,7 @@ const struct Curl_handler Curl_handler_http2 = {
PROTOPT_STREAM /* flags */ PROTOPT_STREAM /* flags */
}; };
const struct Curl_handler Curl_handler_http2_ssl = { static const struct Curl_handler Curl_handler_http2_ssl = {
"HTTPS", /* scheme */ "HTTPS", /* scheme */
ZERO_NULL, /* setup_connection */ ZERO_NULL, /* setup_connection */
Curl_http, /* do_it */ Curl_http, /* do_it */