Ver código fonte

Added missing "static" declarations

tags/v0.9.3
Michael Brown 17 anos atrás
pai
commit
94415b7669
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      src/net/tcp/http.c

+ 2
- 2
src/net/tcp/http.c Ver arquivo

@@ -216,7 +216,7 @@ struct http_header_handler {
216 216
 };
217 217
 
218 218
 /** List of HTTP header handlers */
219
-struct http_header_handler http_header_handlers[] = {
219
+static struct http_header_handler http_header_handlers[] = {
220 220
 	{
221 221
 		.header = "Content-Length",
222 222
 		.rx = http_rx_content_length,
@@ -279,7 +279,7 @@ struct http_line_handler {
279 279
 };
280 280
 
281 281
 /** List of HTTP line-based data handlers */
282
-struct http_line_handler http_line_handlers[] = {
282
+static struct http_line_handler http_line_handlers[] = {
283 283
 	[HTTP_RX_RESPONSE]	= { .rx = http_rx_response },
284 284
 	[HTTP_RX_HEADER]	= { .rx = http_rx_header },
285 285
 };

Carregando…
Cancelar
Salvar